]> Dogcows Code - chaz/openbox/commitdiff
ungrab with currenttime
authorDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 14:10:01 +0000 (14:10 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 14:10:01 +0000 (14:10 +0000)
openbox/grab.c

index f90eb6b537d6964a34a5611f8b15f812a69e2da7..0f21a40f5bbffef059bb1c2203c6751509593cb2 100644 (file)
@@ -23,7 +23,7 @@ void grab_keyboard(gboolean grab)
     } else if (kgrabs > 0) {
         if (--kgrabs == 0) {
             g_message("UNGRABBING KEYBOARD %d", kgrabs);
-            XUngrabKeyboard(ob_display, event_lasttime);
+            XUngrabKeyboard(ob_display, CurrentTime);
         } else
             g_message("NOT UNGRABBING KEYBOARD %d", kgrabs);
     }
@@ -37,7 +37,7 @@ void grab_pointer(gboolean grab, Cursor cur)
                          GrabModeAsync, FALSE, cur, event_lasttime);
     } else if (pgrabs > 0) {
         if (--pgrabs == 0)
-            XUngrabPointer(ob_display, event_lasttime);
+            XUngrabPointer(ob_display, CurrentTime);
     }
 }
 
This page took 0.024627 seconds and 4 git commands to generate.