return true when ungrabbing so that it can ungrab them all on shutdown

This commit is contained in:
Dana Jansens 2003-06-26 23:33:29 +00:00
parent 81cf4699df
commit f6b19a1dc4

View file

@ -27,6 +27,7 @@ gboolean grab_keyboard(gboolean grab)
} else if (kgrabs > 0) { } else if (kgrabs > 0) {
if (--kgrabs == 0) if (--kgrabs == 0)
XUngrabKeyboard(ob_display, event_lasttime); XUngrabKeyboard(ob_display, event_lasttime);
ret = TRUE;
} }
return ret; return ret;
} }
@ -46,6 +47,7 @@ gboolean grab_pointer(gboolean grab, Cursor cur)
} else if (pgrabs > 0) { } else if (pgrabs > 0) {
if (--pgrabs == 0) if (--pgrabs == 0)
XUngrabPointer(ob_display, event_lasttime); XUngrabPointer(ob_display, event_lasttime);
ret = TRUE;
} }
return ret; return ret;
} }
@ -65,6 +67,7 @@ gboolean grab_pointer_window(gboolean grab, Cursor cur, Window win)
} else if (pgrabs > 0) { } else if (pgrabs > 0) {
if (--pgrabs == 0) if (--pgrabs == 0)
XUngrabPointer(ob_display, event_lasttime); XUngrabPointer(ob_display, event_lasttime);
ret = TRUE;
} }
return ret; return ret;
} }