summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 07:59:06 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-21 14:16:36 +1000
commit8a32c39c00789c16006de61112627722ce548be1 (patch)
treeabe3c01284e213bec572886579ca6be99a2db4ec
parent48547068b115b1f5e5f46a70110454a2175fb9a4 (diff)
mi: handle screen switching on pointer emulated touch events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--mi/mieq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mi/mieq.c b/mi/mieq.c
index 5bdf97122..6c46eb9fe 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -514,6 +514,12 @@ mieqProcessDeviceEvent(DeviceIntPtr dev,
if (!handler)
mieqMoveToNewScreen(dev, screen, &event->device_event);
break;
+ case ET_TouchBegin:
+ case ET_TouchUpdate:
+ case ET_TouchEnd:
+ if (!handler && (event->device_event.flags & TOUCH_POINTER_EMULATED))
+ mieqMoveToNewScreen(dev, screen, &event->device_event);
+ break;
default:
break;
}