mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
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.
This commit is contained in:
parent
007e93c869
commit
8829d966a6
8 changed files with 103 additions and 125 deletions
|
|
@ -722,19 +722,10 @@ DeviceEvent *event = (DeviceEvent*)xE;
|
|||
* see. it's still steaming. told you. (whot)
|
||||
*/
|
||||
|
||||
{
|
||||
/* FIXME: temporary solution only. */
|
||||
static int nevents;
|
||||
static xEvent ev[1000]; /* enough bytes for the events we have atm */
|
||||
|
||||
nevents = ConvertBackToXI((InternalEvent*)xE, ev);
|
||||
|
||||
|
||||
UNWRAP_PROCESS_INPUT_PROC(mouse, xkbPrivPtr, backupproc);
|
||||
mouse->public.processInputProc(ev, mouse, nevents);
|
||||
mouse->public.processInputProc(xE, mouse, count);
|
||||
COND_WRAP_PROCESS_INPUT_PROC(mouse, xkbPrivPtr,
|
||||
backupproc, xkbUnwrapProc);
|
||||
}
|
||||
|
||||
xkbi->state.ptr_buttons = mouse->button->state;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue