summaryrefslogtreecommitdiff
path: root/src/xinput.xml
diff options
context:
space:
mode:
authorChristian Linhart <chris@DemoRecorder.com>2014-08-22 17:15:24 +0200
committerChristian Linhart <chris@demorecorder.com>2014-08-25 13:42:55 +0200
commit20d642e7d1e594558b17722f3477d967ad66a2db (patch)
tree982d64b3eea6040a79be6a41a9cb9b658ac805c7 /src/xinput.xml
parent566ceb96d0e8c42befa236655973ca575fe47724 (diff)
xinput: req GrabDeviceKey.modifier_device: altenum
add altenum ModifierDevice to field modifier_device for value UseXKeyboard V2: patch revised according to info from Ran Benita about NULL and UseXKeyboard spec and code: http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n1147 http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XI.h#n187 http://cgit.freedesktop.org/xorg/xserver/tree/Xi/grabdevk.c#n116 the following spec uses "NULL" instead of "UseXKeyboard": http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt#n1213 The reason for NULL vs UseXKeyboard is: in the libXi function XUngrabDeviceKey, the modifier_device arg is an XDevice pointer, and NULL means to use the core X keyboard. But on the wire it is an integer, with 255 as a special value.
Diffstat (limited to 'src/xinput.xml')
-rw-r--r--src/xinput.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xinput.xml b/src/xinput.xml
index 088984c..faa67ac 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -368,7 +368,7 @@ authorization from the authors.
<field type="WINDOW" name="grab_window" />
<field type="CARD16" name="num_classes" />
<field type="CARD16" name="modifiers" mask="ModMask" />
- <field type="CARD8" name="modifier_device" />
+ <field type="CARD8" name="modifier_device" altenum="ModifierDevice" />
<field type="CARD8" name="grabbed_device" />
<field type="CARD8" name="key" altenum="Grab" />
<field type="CARD8" name="this_device_mode" enum="GrabMode" />