summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-09-07 21:48:35 -0400
committerPeter Hutterer <peter.hutterer@who-t.net>2012-10-04 13:24:44 +1000
commit3e6358ee6c33979329b78fe2097a1fdf76fb69cd (patch)
tree081cd8a4d758b012faa1238fdf3ba1ae62e4fa07 /Xi
parent9d6b8365702e4648e793fea21ad22f7174558680 (diff)
Xi: Don't check for TOUCH_END, it's never set
This flag is never set, so checking for it here means that we'll never release the simulated mouse button press after the user touches (and releases) the touchscreen for the first time. Fixes a problem where the XO laptop touchpad became totally unusable after touching the screen for the first time (since X then behaved as if the mouse button was held down all the time). Signed-off-by: Daniel Drake <dsd@laptop.org> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/exevents.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 494d07e20..6ed499142 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -949,8 +949,6 @@ UpdateDeviceState(DeviceIntPtr device, DeviceEvent *event)
if (!(event->flags & TOUCH_POINTER_EMULATED))
return DONT_PROCESS;
- if (!(event->flags & TOUCH_END))
- return DONT_PROCESS;
DecreaseButtonCount(device, key, &t->buttonsDown, &t->motionMask,
&t->state);