mouse: move/resize return if grabbing the pointer fails.

This commit is contained in:
Michael Gehring 2008-06-21 23:22:29 +02:00 committed by Julien Danjou
parent 55646db9cc
commit cb848e6b1a
1 changed files with 4 additions and 2 deletions

View File

@ -473,7 +473,8 @@ mouse_client_move(client_t *c, int snap, bool infobox)
mouse_query_pointer(root, &last_x, &last_y, NULL); mouse_query_pointer(root, &last_x, &last_y, NULL);
/* grab pointer */ /* grab pointer */
mouse_grab_pointer(root, CurMove); if(!mouse_grab_pointer(root, CurMove))
return;
c->ismax = false; c->ismax = false;
@ -863,7 +864,8 @@ mouse_client_resize_magnified(client_t *c, bool infobox)
} }
/* grab pointer */ /* grab pointer */
mouse_grab_pointer(root, cursor); if(!mouse_grab_pointer(root, cursor))
return;
/* move pointer to corner */ /* move pointer to corner */
mouse_warp_pointer(root, mouse_x, mouse_y); mouse_warp_pointer(root, mouse_x, mouse_y);