summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2013-08-04 13:35:02 +0300
committerDaniel Martin <consume.noise@gmail.com>2013-08-15 00:23:46 +0200
commite8980ab471fe30ac0d6c6c2e712a9ed400abe75e (patch)
tree0d6428bfb599bd783e4b0ba39bf91eade74961c0
parentf4321385e01a5a7e9bf5dfa697b54b103dc05a81 (diff)
xkb: Change DfltBtnAbsolute to the value used by the server
The spec says: #x02 XkbSA_DfltBtnAbsolute But /usr/include/X11/extensions/XKB.h has: #define XkbSA_DfltBtnAbsolute (1L << 2) which is what the server sends. Note: the XKB spec was changed by Daniel Martin to match the Xlib value. See kbproto commit db07706cb268d5fe1bc38ef5c0a9f49309068b2c. Reviewed-by: Daniel Martin <consume.noise@gmail.com> Signed-off-by: Ran Benita <ran234@gmail.com>
-rw-r--r--src/xkb.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xkb.xml b/src/xkb.xml
index 6de634e..8945445 100644
--- a/src/xkb.xml
+++ b/src/xkb.xml
@@ -874,7 +874,8 @@ authorization from the authors.
</struct>
<enum name="SASetPtrDfltFlag">
- <item name="DfltBtnAbsolute"> <bit>1</bit> </item>
+ <!-- The spec says 0x02 but Xlib uses 0x04. -->
+ <item name="DfltBtnAbsolute"> <bit>2</bit> </item>
<item name="AffectDfltButton"> <bit>0</bit> </item>
</enum>