[mouse] Fix regression in moving
This commit is contained in:
parent
70dafae396
commit
ff13d83f55
8
mouse.c
8
mouse.c
|
@ -150,15 +150,17 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
xcb_screen_t *s = xcb_aux_get_screen(globalconf.connection, c->phys_screen);
|
xcb_screen_t *s = xcb_aux_get_screen(globalconf.connection, c->phys_screen);
|
||||||
|
|
||||||
if(!c
|
if(!c
|
||||||
|| xcb_grab_pointer_reply(globalconf.connection,
|
|| !(grab_pointer_r = xcb_grab_pointer_reply(globalconf.connection,
|
||||||
xcb_grab_pointer(globalconf.connection, false,
|
xcb_grab_pointer(globalconf.connection, false,
|
||||||
s->root,
|
s->root,
|
||||||
MOUSEMASK, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC,
|
MOUSEMASK, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC,
|
||||||
s->root,
|
s->root,
|
||||||
globalconf.cursor[CurMove], XCB_CURRENT_TIME),
|
globalconf.cursor[CurMove], XCB_CURRENT_TIME),
|
||||||
NULL))
|
NULL)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
p_delete(&grab_pointer_r);
|
||||||
|
|
||||||
query_pointer_r = xcb_query_pointer_reply(globalconf.connection,
|
query_pointer_r = xcb_query_pointer_reply(globalconf.connection,
|
||||||
xcb_query_pointer_unchecked(globalconf.connection,
|
xcb_query_pointer_unchecked(globalconf.connection,
|
||||||
s->root),
|
s->root),
|
||||||
|
@ -187,8 +189,6 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
mouse_resizebar_draw(ctx, style, sw, geometry, c->border);
|
mouse_resizebar_draw(ctx, style, sw, geometry, c->border);
|
||||||
}
|
}
|
||||||
|
|
||||||
p_delete(&grab_pointer_r);
|
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
/* TODO: need a review
|
/* TODO: need a review
|
||||||
|
|
Loading…
Reference in New Issue