diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-02 17:20:17 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-23 17:52:40 +1000 |
commit | 763848d3ab84b4e33a0254120c44b5a1877c819d (patch) | |
tree | 5215ee6c1c042aa6f505ebd27fb2f59b9d9cbf25 /xkb | |
parent | 0b4066c116e07918a13dc6b4159df7ac9eb92b4b (diff) |
Input: change processing API to InternalEvents.
Don't pass xEvent* and count through to processing, pass a single
InternalEvent.
Custom handlers are disabled for the time being. And for extra fun,
XKB's pointer motion emulation is disabled. But stick an error in there so
that we get reminded should we forget about it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
-rw-r--r-- | xkb/ddxDevBtn.c | 4 | ||||
-rw-r--r-- | xkb/xkbAccessX.c | 9 | ||||
-rw-r--r-- | xkb/xkbActions.c | 6 | ||||
-rw-r--r-- | xkb/xkbPrKeyEv.c | 6 |
4 files changed, 14 insertions, 11 deletions
diff --git a/xkb/ddxDevBtn.c b/xkb/ddxDevBtn.c index aad9661bc..e735fdec8 100644 --- a/xkb/ddxDevBtn.c +++ b/xkb/ddxDevBtn.c @@ -58,6 +58,9 @@ DeviceIntPtr master = NULL; if (dev == inputInfo.pointer || !dev->public.on) return; + ErrorF("[xkb] XkbDDXFakeDeviceButton. If you read this message in your " + "log file, Please file a bug on bugs.freedesktop.org.\n"); +#if 0 nAxes = (dev->valuator?dev->valuator->numAxes:0); if (nAxes > 6) nAxes = 6; @@ -125,4 +128,5 @@ DeviceIntPtr master = NULL; (*master->public.processInputProc)(masterEvents->event, master, count); } return; +#endif } diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c index 618a18c72..524bb5392 100644 --- a/xkb/xkbAccessX.c +++ b/xkb/xkbAccessX.c @@ -684,16 +684,15 @@ Bool ignoreKeyEvent = FALSE; extern int xkbDevicePrivateIndex; extern void xkbUnwrapProc(DeviceIntPtr, DeviceHandleProc, pointer); void -ProcessPointerEvent( register xEvent * xE, - register DeviceIntPtr mouse, - int count) +ProcessPointerEvent( InternalEvent *ev, + DeviceIntPtr mouse) { DeviceIntPtr dev = GetPairedDevice(mouse); XkbSrvInfoPtr xkbi = dev->key->xkbInfo; unsigned changed = 0; ProcessInputProc backupproc; xkbDeviceInfoPtr xkbPrivPtr = XKBDEVICEINFO(mouse); -DeviceEvent *event = (DeviceEvent*)xE; +DeviceEvent *event = (DeviceEvent*)ev; xkbi->shiftKeyCount = 0; xkbi->lastPtrEventTime= event->time; @@ -723,7 +722,7 @@ DeviceEvent *event = (DeviceEvent*)xE; */ UNWRAP_PROCESS_INPUT_PROC(mouse, xkbPrivPtr, backupproc); - mouse->public.processInputProc(xE, mouse, count); + mouse->public.processInputProc(ev, mouse); COND_WRAP_PROCESS_INPUT_PROC(mouse, xkbPrivPtr, backupproc, xkbUnwrapProc); diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c index 3a2c51740..7d17ad4f7 100644 --- a/xkb/xkbActions.c +++ b/xkb/xkbActions.c @@ -853,7 +853,7 @@ ProcessInputProc backupproc; } UNWRAP_PROCESS_INPUT_PROC(xkbi->device,xkbPrivPtr, backupproc); - xkbi->device->public.processInputProc(&ev,xkbi->device,1); + xkbi->device->public.processInputProc((InternalEvent*)&ev, xkbi->device); COND_WRAP_PROCESS_INPUT_PROC(xkbi->device, xkbPrivPtr, backupproc,xkbUnwrapProc); @@ -884,7 +884,7 @@ ProcessInputProc backupproc; } UNWRAP_PROCESS_INPUT_PROC(xkbi->device,xkbPrivPtr, backupproc); - xkbi->device->public.processInputProc(&ev,xkbi->device,1); + xkbi->device->public.processInputProc((InternalEvent*)&ev, xkbi->device); COND_WRAP_PROCESS_INPUT_PROC(xkbi->device, xkbPrivPtr, backupproc,xkbUnwrapProc); @@ -1212,7 +1212,7 @@ xkbDeviceInfoPtr xkbPrivPtr = XKBDEVICEINFO(dev); tmpdev = GetPairedDevice(dev); UNWRAP_PROCESS_INPUT_PROC(tmpdev,xkbPrivPtr, backupproc); - dev->public.processInputProc((xEvent*)event, tmpdev, 1); + dev->public.processInputProc((InternalEvent*)event, tmpdev); COND_WRAP_PROCESS_INPUT_PROC(tmpdev, xkbPrivPtr, backupproc,xkbUnwrapProc); } diff --git a/xkb/xkbPrKeyEv.c b/xkb/xkbPrKeyEv.c index 86e967477..effb0ea3a 100644 --- a/xkb/xkbPrKeyEv.c +++ b/xkb/xkbPrKeyEv.c @@ -161,14 +161,14 @@ unsigned ndx; } void -ProcessKeyboardEvent(xEvent *xE,DeviceIntPtr keybd,int count) +ProcessKeyboardEvent(InternalEvent *ev, DeviceIntPtr keybd) { KeyClassPtr keyc = keybd->key; XkbSrvInfoPtr xkbi = NULL; ProcessInputProc backup_proc; xkbDeviceInfoPtr xkb_priv = XKBDEVICEINFO(keybd); - DeviceEvent *event = (DeviceEvent*)xE; + DeviceEvent *event = (DeviceEvent*)ev; int is_press = (event->type == ET_KeyPress); int is_release = (event->type == ET_KeyRelease); @@ -178,7 +178,7 @@ ProcessKeyboardEvent(xEvent *xE,DeviceIntPtr keybd,int count) /* We're only interested in key events. */ if (!is_press && !is_release) { UNWRAP_PROCESS_INPUT_PROC(keybd, xkb_priv, backup_proc); - keybd->public.processInputProc(xE, keybd, count); + keybd->public.processInputProc(ev, keybd); COND_WRAP_PROCESS_INPUT_PROC(keybd, xkb_priv, backup_proc, xkbUnwrapProc); return; |