[PATCH v2] dmx: queue button events with a flags of 0

Peter Hutterer peter.hutterer at who-t.net
Tue Oct 29 04:49:49 CET 2013


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 at who-t.net>
---
Changes to v1: 
- set flags to 0, instead of supplying a valuator mask.

 hw/dmx/input/dmxevents.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/dmx/input/dmxevents.c b/hw/dmx/input/dmxevents.c
index 2875620..fc2620e 100644
--- a/hw/dmx/input/dmxevents.c
+++ b/hw/dmx/input/dmxevents.c
@@ -725,9 +725,8 @@ dmxEnqueue(DevicePtr pDev, int type, int detail, KeySym keySym,
     case ButtonPress:
     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:
-- 
1.8.3.1



More information about the xorg-devel mailing list