mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
dmx: queue button events with a flags of 0
Setting POINTER_SCREEN with a unset valuator mask causes a jump to 0/0. Set the flags to 0 so we don't generate any motion on a button event. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
@@ -726,8 +726,7 @@ dmxEnqueue(DevicePtr pDev, int type, int detail, KeySym keySym,
|
||||
case ButtonRelease:
|
||||
detail = dmxGetButtonMapping(dmxLocal, detail);
|
||||
valuator_mask_zero(&mask);
|
||||
QueuePointerEvents(p, type, detail,
|
||||
POINTER_ABSOLUTE | POINTER_SCREEN, &mask);
|
||||
QueuePointerEvents(p, type, detail, 0, &mask);
|
||||
return;
|
||||
|
||||
case MotionNotify:
|
||||
|
||||
Reference in New Issue
Block a user