summaryrefslogtreecommitdiff
path: root/xkb/xkbActions.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-01-30 13:33:55 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-02-23 17:52:39 +1000
commit8829d966a6bacb05d322b60531c59366b58f4514 (patch)
treed4631aba93eaf69425750ae49d4634d3d9dd955e /xkb/xkbActions.c
parent007e93c869325cafcc29d975b356dbb8e7cd2ac1 (diff)
Xi: support InternalEvents in UpdateDeviceState, parts of POE and EnqueueEvent
Note that this breaks DGA. Life is tough. EnqueueEvent is a somewhat half-baked solution, we immediately drop back into XI and store them. But it should in theory work. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Don't let the dcce be random data.
Diffstat (limited to 'xkb/xkbActions.c')
-rw-r--r--xkb/xkbActions.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index 6f5c6bc04..afc42f31d 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -1211,20 +1211,10 @@ xkbDeviceInfoPtr xkbPrivPtr = XKBDEVICEINFO(dev);
else
tmpdev = GetPairedDevice(dev);
- {
-
-
- /* FIXME: temporary solution only. */
- static int nevents;
- static xEvent ev[1000]; /* enough bytes for the events we have atm */
- nevents = ConvertBackToXI((InternalEvent*)event, ev);
-
UNWRAP_PROCESS_INPUT_PROC(tmpdev,xkbPrivPtr, backupproc);
- dev->public.processInputProc(ev, tmpdev, nevents);
+ dev->public.processInputProc((xEvent*)event, tmpdev, 1);
COND_WRAP_PROCESS_INPUT_PROC(tmpdev, xkbPrivPtr,
backupproc,xkbUnwrapProc);
-
- }
}
else if (keyEvent) {
FixKeyState(event, dev);