]> Dogcows Code - chaz/openbox/commitdiff
return true when ungrabbing so that it can ungrab them all on shutdown
authorDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 23:33:29 +0000 (23:33 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 23:33:29 +0000 (23:33 +0000)
openbox/grab.c

index f8359df675a5dc3a3f9482fa16543abbd223365f..7cb553a21078f6010e53d77b1dfa22603bf01619 100644 (file)
@@ -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;
 }
This page took 0.022568 seconds and 4 git commands to generate.