summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-10-30 12:11:41 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-12-03 08:24:04 +1000
commitb584c224a888c9e7f92d7e49021f74232a727c7f (patch)
tree62565ccb00aa67b5acd6cad2863c9d685b7d376a /xkb
parent66bb8c6fbdfc0fc0d971aac4ec6f949bb9288c1b (diff)
Set the source and deviceid for key repeat events (#24785)
X.Org Bug 24785 <http://bugs.freedesktop.org/show_bug.cgi?id=24785> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbAccessX.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c
index 2fc764290..0d8e4eb2d 100644
--- a/xkb/xkbAccessX.c
+++ b/xkb/xkbAccessX.c
@@ -131,6 +131,8 @@ AccessXKeyboardEvent(DeviceIntPtr keybd,
event.time = GetTimeInMillis();
event.length = sizeof(DeviceEvent);
event.key_repeat = isRepeat;
+ event.sourceid = keybd->id;
+ event.deviceid = keybd->id;
if (xkbDebugFlags&0x8) {
DebugF("[xkb] AXKE: Key %d %s\n", keyCode,