[mouse] Grab Pointer before warping it.
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
265fc187a9
commit
f00b5b252c
6
mouse.c
6
mouse.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue