From: Dana Jansens Date: Wed, 26 Mar 2003 14:10:01 +0000 (+0000) Subject: ungrab with currenttime X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=4f101c1fb450b6d39f6284262ffe25c2c75cfb5c;p=chaz%2Fopenbox ungrab with currenttime --- diff --git a/openbox/grab.c b/openbox/grab.c index f90eb6b5..0f21a40f 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -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); } }