summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2015-11-20 15:37:29 +0000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-11-24 11:36:32 +1000
commitc3788394e9190130a8eed44c5c93eeb93c2a9893 (patch)
tree16680fcc42e5b61778b432be8c037270ab6b4777 /xkb
parent2e61901e46d28ce2f436219ad1a495aa0dcd0fba (diff)
Input: Add DeviceEventSource enum
Add a flag to DeviceEvents, giving the source of the event. Currently this only supports a 'normal' flag, but will be used later to add a 'focus-in' flag, noting events synthesised from key/button arrays on focus-in notifications. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbAccessX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c
index 7fd6a48df..02e820b2d 100644
--- a/xkb/xkbAccessX.c
+++ b/xkb/xkbAccessX.c
@@ -126,7 +126,7 @@ AccessXKeyboardEvent(DeviceIntPtr keybd, int type, BYTE keyCode, Bool isRepeat)
{
DeviceEvent event;
- init_device_event(&event, keybd, GetTimeInMillis());
+ init_device_event(&event, keybd, GetTimeInMillis(), EVENT_SOURCE_NORMAL);
event.type = type;
event.detail.key = keyCode;
event.key_repeat = isRepeat;