only do moveresize when grab is successful
This commit is contained in:
parent
66af88b27c
commit
03136a081a
1 changed files with 7 additions and 3 deletions
|
@ -162,6 +162,13 @@ void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
|
||||||
(c->functions & OB_CLIENT_FUNC_RESIZE)))
|
(c->functions & OB_CLIENT_FUNC_RESIZE)))
|
||||||
return;
|
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);
|
frame_end_iconify_animation(c->frame);
|
||||||
|
|
||||||
moveresize_client = c;
|
moveresize_client = c;
|
||||||
|
@ -262,9 +269,6 @@ void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
|
||||||
waiting_for_sync = FALSE;
|
waiting_for_sync = FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
grab_pointer(TRUE, FALSE, cur);
|
|
||||||
grab_keyboard(TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void moveresize_end(gboolean cancel)
|
void moveresize_end(gboolean cancel)
|
||||||
|
|
Loading…
Reference in a new issue