all repos — openbox @ 03136a081a5f0a8735aac7eef162631e0ae21c7f

openbox fork - make it a bit more like ryudo

only do moveresize when grab is successful
Dana Jansens danakj@orodu.net
commit

03136a081a5f0a8735aac7eef162631e0ae21c7f

parent

66af88b27ccfbd00e1d52f3b0e994ae8a56898f8

1 files changed, 7 insertions(+), 3 deletions(-)

jump to
M openbox/moveresize.copenbox/moveresize.c

@@ -162,6 +162,13 @@ (c->functions & OB_CLIENT_FUNC_MOVE) :

(c->functions & OB_CLIENT_FUNC_RESIZE))) return; + if (!grab_pointer(TRUE, FALSE, cur)) + return; + if (!grab_keyboard(TRUE)) { + grab_pointer(FALSE, FALSE, OB_CURSOR_NONE); + return; + } + frame_end_iconify_animation(c->frame); moveresize_client = c;

@@ -262,9 +269,6 @@

waiting_for_sync = FALSE; } #endif - - grab_pointer(TRUE, FALSE, cur); - grab_keyboard(TRUE); } void moveresize_end(gboolean cancel)