mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
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>
This commit is contained in:
parent
0b4066c116
commit
763848d3ab
10 changed files with 34 additions and 31 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue