X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgrab.c;h=34fd2302811db7d8b3c0313dffe696622590890a;hb=f9c659c12c7f387133b76a89e38dd48bba1b8172;hp=a53fe5e8241039a92ccfe4c8067740cfd5989ae3;hpb=32047fd66c796fe837168ce2ac6677aa0d2b20b4;p=chaz%2Fopenbox diff --git a/openbox/grab.c b/openbox/grab.c index a53fe5e8..34fd2302 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -78,8 +78,9 @@ gboolean grab_pointer(gboolean grab, ObCursor cur) else ret = TRUE; } else if (pgrabs > 0) { - if (--pgrabs == 0) + if (--pgrabs == 0) { XUngrabPointer(ob_display, event_lasttime); + } ret = TRUE; } return ret; @@ -98,8 +99,9 @@ gboolean grab_pointer_window(gboolean grab, ObCursor cur, Window win) else ret = TRUE; } else if (pgrabs > 0) { - if (--pgrabs == 0) + if (--pgrabs == 0) { XUngrabPointer(ob_display, event_lasttime); + } ret = TRUE; } return ret;