[PATCH] dix: treat flags as flags, not as value in key_is_down.

Peter Hutterer peter.hutterer at who-t.net
Mon Jul 5 00:18:34 PDT 2010


Fixes Xlib13 XSetModifierMapping 6/8.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/getevents.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dix/getevents.c b/dix/getevents.c
index f9d65e9..2eacdfe 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -115,7 +115,7 @@ key_is_down(DeviceIntPtr pDev, int key_code, int type)
 
     if (type & KEY_PROCESSED)
         ret |= !!(pDev->key->down[key_code >> 3] & (1 << (key_code & 7)));
-    else if (type & KEY_POSTED)
+    if (type & KEY_POSTED)
         ret |= !!(pDev->key->postdown[key_code >> 3] & (1 << (key_code & 7)));
 
     return ret;
-- 
1.7.1



More information about the xorg-devel mailing list