diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-26 10:48:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-02 16:16:58 +1000 |
commit | 1abcc881715327614e248e9047c5fbd29a945c03 (patch) | |
tree | 901f65f112be995e1bec04ded9399a82d0a09f1c | |
parent | Don't double-assign the UKNOWN axis label. (diff) | |
download | xf86-input-evdev-1abcc881715327614e248e9047c5fbd29a945c03.tar.gz xf86-input-evdev-1abcc881715327614e248e9047c5fbd29a945c03.tar.bz2 xf86-input-evdev-1abcc881715327614e248e9047c5fbd29a945c03.zip |
Rename prop_label to prop_axis_label.
-rw-r--r-- | src/evdev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/evdev.c b/src/evdev.c index 048315f..baae3a4 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -121,7 +121,7 @@ static Atom prop_invert = 0; static Atom prop_reopen = 0; static Atom prop_calibration = 0; static Atom prop_swap = 0; -static Atom prop_label = 0; +static Atom prop_axis_label = 0; #endif /* All devices the evdev driver has allocated and knows about. @@ -1858,7 +1858,7 @@ EvdevInitProperty(DeviceIntPtr dev) #ifdef HAVE_LABELS /* Axis labelling */ - if ((prop_label = XIGetKnownProperty(AXIS_LABEL_PROP))) + if ((prop_axis_label = XIGetKnownProperty(AXIS_LABEL_PROP))) { Atom atom, atoms[pEvdev->num_vals]; int natoms = pEvdev->num_vals; @@ -1897,9 +1897,9 @@ EvdevInitProperty(DeviceIntPtr dev) atoms[pEvdev->axis_map[axis]] = atom; } - XIChangeDeviceProperty(dev, prop_label, XA_ATOM, 32, + XIChangeDeviceProperty(dev, prop_axis_label, XA_ATOM, 32, PropModeReplace, natoms, &atoms, FALSE); - XISetDevicePropertyDeletable(dev, prop_label, FALSE); + XISetDevicePropertyDeletable(dev, prop_axis_label, FALSE); } #endif /* HAVE_LABELS */ } @@ -1966,7 +1966,7 @@ EvdevSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val, if (!checkonly) pEvdev->swap_axes = *((BOOL*)val->data); - } else if (atom == prop_label) + } else if (atom == prop_axis_label) return BadAccess; /* Axis labels can't be changed */ return Success; |