[PATCH 42/42] mi: handle screen switching on pointer emulated touch events

Peter Hutterer peter.hutterer at who-t.net
Wed Dec 14 19:02:19 PST 2011


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 mi/mieq.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/mi/mieq.c b/mi/mieq.c
index 5bdf971..6c46eb9 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;
     }
-- 
1.7.7.1



More information about the xorg-devel mailing list