summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 07:59:06 +1000
committerChase Douglas <chase.douglas@canonical.com>2011-12-21 10:34:12 -0800
commit7b97a1954c97f5cf13e3610c980c5fd3f8433703 (patch)
tree3c4bfc2a4ffbce6cb4cf20dbba71996b38ff44b2
parentc9940355aee047fd10c398394b218ba5d60e6588 (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;
}