summaryrefslogtreecommitdiff
path: root/XI2.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-28 08:20:37 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-28 14:47:49 +1000
commit6b61bef5da91ca24d1bfcf9d314b8b8587c3e4fc (patch)
tree04bd15aa72268837474cbea453120c4908617182 /XI2.h
parent1b2dc24bf51a325ea3fafb46768467675b00be52 (diff)
Mirror the core enter/focus modes and add the passive grab mode.
If an enter/focus grabs activates (or deactivates), send an extra set of enter/focus in (or leave/focus out) events to the grabbing client with mode XIPassiveGrabNotify. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XI2.h')
-rw-r--r--XI2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/XI2.h b/XI2.h
index 6c58926..4765853 100644
--- a/XI2.h
+++ b/XI2.h
@@ -33,6 +33,14 @@
#define XIPropertyCreated 1
#define XIPropertyModified 2
+/* Enter/Leave and Focus In/Out modes */
+#define XINotifyNormal 0
+#define XINotifyGrab 1
+#define XINotifyUngrab 2
+#define XINotifyWhileGrabbed 3
+#define XINotifyPassiveGrab 4
+#define XINotifyPassiveUngrab 5
+
/* Passive grab types */
#define XIGrabtypeButton 0
#define XIGrabtypeKeysym 1