summaryrefslogtreecommitdiff
authorTom Jaeger <ThJaeger@gmail.com>2008-12-08 01:38:12 (GMT)
committer Peter Hutterer <peter.hutterer@who-t.net>2008-12-08 02:05:54 (GMT)
commit78a62d7713c708d067d8824ec41b0a0225c1997f (patch) (side-by-side diff)
tree84229f414225ab89d074a086e5283352d2a50baf
parentee1a6c28418a6dad6c89f79a994f27bfbaa77368 (diff)
downloadxserver-78a62d7713c708d067d8824ec41b0a0225c1997f.zip
xserver-78a62d7713c708d067d8824ec41b0a0225c1997f.tar.gz
Xi: XIGetDevice needs to ignore the MORE_EVENTS flag.
Reported in X.Org Bug 18882, Comment 5. <http://bugs.freedesktop.org/show_bug.cgi?id=18882> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Xi/exevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 43657b9..6d9b667 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -154,7 +154,7 @@ XIGetDevice(xEvent* xE)
int rc;
int id;
- id = ((deviceKeyButtonPointer*)xE)->deviceid;
+ id = ((deviceKeyButtonPointer*)xE)->deviceid & ~MORE_EVENTS;
rc = dixLookupDevice(&pDev, id, serverClient, DixUnknownAccess);
if (rc != Success)