always ungrab the keyboard/mouse with current time because i dont know what else we can do with buggy x.org

This commit is contained in:
Dana Jansens 2007-06-03 16:59:24 +00:00
parent 1fd07ad51d
commit c61c7e7329

View file

@ -84,7 +84,7 @@ gboolean grab_keyboard_full(gboolean grab)
ret = TRUE; ret = TRUE;
} else if (kgrabs > 0) { } else if (kgrabs > 0) {
if (--kgrabs == 0) { if (--kgrabs == 0) {
XUngrabKeyboard(ob_display, ungrab_time()); XUngrabKeyboard(ob_display, CurrentTime);
} }
ret = TRUE; ret = TRUE;
} }
@ -113,7 +113,7 @@ gboolean grab_pointer_full(gboolean grab, gboolean owner_events,
ret = TRUE; ret = TRUE;
} else if (pgrabs > 0) { } else if (pgrabs > 0) {
if (--pgrabs == 0) { if (--pgrabs == 0) {
XUngrabPointer(ob_display, ungrab_time()); XUngrabPointer(ob_display, CurrentTime);
} }
ret = TRUE; ret = TRUE;
} }