From d03b731389379ab75795e4785a3fb7c30371f90d 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:44:36 +0100
Subject: [PATCH] * XTools.pmod (Button): Remove GrabButton() call.

Rev: lib/modules/Protocols.pmod/X.pmod/XTools.pmod:1.2
---
 lib/modules/Protocols.pmod/X.pmod/XTools.pmod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/modules/Protocols.pmod/X.pmod/XTools.pmod b/lib/modules/Protocols.pmod/X.pmod/XTools.pmod
index 0834bec2ef..2b260b4eaa 100644
--- a/lib/modules/Protocols.pmod/X.pmod/XTools.pmod
+++ b/lib/modules/Protocols.pmod/X.pmod/XTools.pmod
@@ -63,7 +63,7 @@ class Button
   {
     inside = 0;
     if (pressed && style)
-      redraw_callback(this_object(), 1, 0);
+      redraw_callback(this_object(), 0, 0);
     return 0;
   }
   
@@ -75,7 +75,7 @@ class Button
     window->SelectInput("Exposure",
 			"ButtonPress", "ButtonRelease",
 			"EnterWindow", "LeaveWindow");
-    window->GrabButton(b || 1, 0, "EnterWindow", "LeaveWindow");
+    // window->GrabButton(button, 0, "EnterWindow", "LeaveWindow");
     window->set_event_callback("Expose", button_exposed);
     window->set_event_callback("ButtonPress", button_pressed);
     window->set_event_callback("ButtonRelease", button_released);
-- 
GitLab