[mouse] Grab Pointer before warping it.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Michael Gehring 2008-06-05 22:17:44 +02:00 committed by Julien Danjou
parent 265fc187a9
commit f00b5b252c
1 changed files with 3 additions and 3 deletions

View File

@ -483,13 +483,13 @@ mouse_client_resize_floating(client_t *c)
}
}
/* set pointer to the moveable corner */
mouse_warp_pointer(screen->root, mouse_x, mouse_y);
/* grab the pointer */
if(!mouse_grab_pointer(screen->root, CurResize))
return;
/* set pointer to the moveable corner */
mouse_warp_pointer(screen->root, mouse_x, mouse_y);
/* create the resizebar */
sw = mouse_resizebar_new(c->phys_screen, c->border, c->geometry, &ctx);
xcb_aux_sync(globalconf.connection);