From: Dana Jansens Date: Thu, 26 Jun 2003 23:33:29 +0000 (+0000) Subject: return true when ungrabbing so that it can ungrab them all on shutdown X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=f6b19a1dc415b522850df324ee5148cab0a15e9b;p=chaz%2Fopenbox return true when ungrabbing so that it can ungrab them all on shutdown --- diff --git a/openbox/grab.c b/openbox/grab.c index f8359df6..7cb553a2 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -27,6 +27,7 @@ gboolean grab_keyboard(gboolean grab) } else if (kgrabs > 0) { if (--kgrabs == 0) XUngrabKeyboard(ob_display, event_lasttime); + ret = TRUE; } return ret; } @@ -46,6 +47,7 @@ gboolean grab_pointer(gboolean grab, Cursor cur) } else if (pgrabs > 0) { if (--pgrabs == 0) XUngrabPointer(ob_display, event_lasttime); + ret = TRUE; } return ret; } @@ -65,6 +67,7 @@ gboolean grab_pointer_window(gboolean grab, Cursor cur, Window win) } else if (pgrabs > 0) { if (--pgrabs == 0) XUngrabPointer(ob_display, event_lasttime); + ret = TRUE; } return ret; }