From 4765eea6cce76725f42fe848c4a242b0de4dfb16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Sun, 11 Jan 1998 09:00:13 +0100
Subject: [PATCH] * Requests.pmod (GrabButton): New class.

Rev: lib/modules/Protocols.pmod/X.pmod/Requests.pmod:1.12
---
 .../Protocols.pmod/X.pmod/Requests.pmod       | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/lib/modules/Protocols.pmod/X.pmod/Requests.pmod b/lib/modules/Protocols.pmod/X.pmod/Requests.pmod
index 66473fef72..1ebac5b247 100644
--- a/lib/modules/Protocols.pmod/X.pmod/Requests.pmod
+++ b/lib/modules/Protocols.pmod/X.pmod/Requests.pmod
@@ -413,6 +413,53 @@ class ListProperties
   }
 }
 
+#if 0
+class GrabPointer
+{
+  inherit request;
+  constant reqType = 26;
+}
+
+class UnGrabPointer
+{
+  inherit request;
+  constant reqType = 27;
+}
+#endif
+
+class GrabButton
+{
+  inherit request;
+  constant reqType = 28;
+
+  int ownerEvents;
+  int grabWindow;
+  int eventMask;
+  int pointerMode;
+  int keyboardMode;
+  int confineTo;
+  int cursor;
+  int button;
+  int modifiers;
+
+  string to_string()
+  {
+    return build_request(sprintf("%4c%2c" "%c%c" "%4c%4c%c\0%2c",
+				 grabWindow, eventMask,
+				 pointerMode, keyboardMode,
+				 confineTo, cursor, button, modifiers),
+			 ownerEvents);
+  }
+}
+
+#if 0
+class UnGrabButton
+{
+  inherit request;
+  constant reqType = 29;
+}
+#endif
+
 class CreateGC
 {
   inherit request;
-- 
GitLab