return true when ungrabbing so that it can ungrab them all on shutdown
This commit is contained in:
parent
81cf4699df
commit
f6b19a1dc4
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue