mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Xi: use dixAddAtom()
Use the new helper for creating atoms on demand. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
ef420e43be
commit
16246adc8e
@@ -1245,8 +1245,7 @@ MakeDeviceTypeAtoms(void)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < NUMTYPES; i++)
|
||||
dev_type[i].type =
|
||||
MakeAtom(dev_type[i].name, strlen(dev_type[i].name), 1);
|
||||
dev_type[i].type = dixAddAtom(dev_type[i].name);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <X11/extensions/XIproto.h>
|
||||
#include <X11/extensions/XI2proto.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/exevents_priv.h"
|
||||
#include "dix/extension_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
@@ -375,12 +376,8 @@ XIGetKnownProperty(const char *name)
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(dev_properties); i++) {
|
||||
if (strcmp(name, dev_properties[i].name) == 0) {
|
||||
if (dev_properties[i].type == None) {
|
||||
dev_properties[i].type =
|
||||
MakeAtom(dev_properties[i].name,
|
||||
strlen(dev_properties[i].name), TRUE);
|
||||
}
|
||||
|
||||
if (dev_properties[i].type == None)
|
||||
dev_properties[i].type = dixAddAtom(dev_properties[i].name);
|
||||
return dev_properties[i].type;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user