summaryrefslogtreecommitdiff
path: root/dix/touch.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 07:48:49 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-21 14:16:36 +1000
commitcd3de8324e8908955a2e4be3000c8ffee8684c68 (patch)
tree1189957f65dc37fe9f33b313972fc8bf7b4da14e /dix/touch.c
parent5b169cb695bd450d7f64e3800f00c9237ee67f96 (diff)
dix: hook up passive grabs and pointer emulated passive grabs
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'dix/touch.c')
-rw-r--r--dix/touch.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/dix/touch.c b/dix/touch.c
index 5731d9118..9bd07c37c 100644
--- a/dix/touch.c
+++ b/dix/touch.c
@@ -910,3 +910,29 @@ TouchSetupListeners(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent *ev)
return;
}
}
+
+/**
+ * Remove the touch pointer grab from the device. Called from AllowSome()
+ */
+void
+TouchRemovePointerGrab(DeviceIntPtr dev)
+{
+ TouchPointInfoPtr ti;
+ GrabPtr grab;
+ DeviceEvent *ev;
+
+ if (!dev->touch)
+ return;
+
+ grab = dev->deviceGrab.grab;
+ if (!grab)
+ return;
+
+ ev = dev->deviceGrab.sync.event;
+ if (!IsTouchEvent((InternalEvent*)ev))
+ return;
+
+ ti = TouchFindByClientID(dev, ev->touchid);
+ if (!ti)
+ return;
+}