summaryrefslogtreecommitdiff
path: root/src/draglock.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-09-26 13:47:24 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-09-30 12:24:03 +0930
commita77c2622cc7979cea6c1549f1978fae575b76c6c (patch)
treeddf944cc2f5f83f4486ac3fa65f7a8b0b33545a9 /src/draglock.c
parent84a0e39c0dd8bcc80d4f6912562260c1771f311f (diff)
Add evdev-properties.h file with #defines for all property names.
Diffstat (limited to 'src/draglock.c')
-rw-r--r--src/draglock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/draglock.c b/src/draglock.c
index 03b4345..68fe5c0 100644
--- a/src/draglock.c
+++ b/src/draglock.c
@@ -41,11 +41,10 @@
#include <X11/Xatom.h>
#include <exevents.h>
+#include <evdev-properties.h>
#include "evdev.h"
#ifdef HAVE_PROPERTIES
-static const char *propname_dlock = "Drag Lock Buttons";
-
static Atom prop_dlock = 0; /* Drag lock buttons. */
void EvdevDragLockLockButton(InputInfoPtr pInfo, unsigned int button);
@@ -223,7 +222,7 @@ EvdevDragLockInitProperty(DeviceIntPtr dev)
if (!dev->button) /* don't init prop for keyboards */
return;
- prop_dlock = MakeAtom((char*)propname_dlock, strlen(propname_dlock), TRUE);
+ prop_dlock = MakeAtom(EVDEV_PROP_DRAGLOCK, strlen(EVDEV_PROP_DRAGLOCK), TRUE);
if (pEvdev->dragLock.meta)
{
XIChangeDeviceProperty(dev, prop_dlock, XA_INTEGER, 8,