diff options
author | Keith Packard <keithp@keithp.com> | 2011-09-26 20:24:15 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-09-26 20:24:15 -0700 |
commit | afb1fe695d197187a301c19863a128a65389b15c (patch) | |
tree | d1ec3b11b8ca521cb77ff1d6821786d3dfc6a5e1 /xkb | |
parent | 7fb4bef0394a5d09680985d34bce8252b61493cb (diff) | |
parent | c7163fdd302f706a3d67f0fdf93eeb3396bb3332 (diff) |
Merge remote-tracking branch 'whot/next'
Diffstat (limited to 'xkb')
-rw-r--r-- | xkb/xkbAccessX.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c index 12fe2a1f5..4115ff27d 100644 --- a/xkb/xkbAccessX.c +++ b/xkb/xkbAccessX.c @@ -124,15 +124,11 @@ AccessXKeyboardEvent(DeviceIntPtr keybd, Bool isRepeat) { DeviceEvent event; - memset(&event, 0, sizeof(DeviceEvent)); - event.header = ET_Internal; + + init_device_event(&event, keybd, GetTimeInMillis()); event.type = type; event.detail.key = keyCode; - 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, |