[mouse] Fix regression in moving

This commit is contained in:
Arnaud Fontaine 2008-03-28 12:00:12 +00:00 committed by Julien Danjou
parent 70dafae396
commit ff13d83f55
1 changed files with 9 additions and 9 deletions

18
mouse.c
View File

@ -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);
if(!c
|| xcb_grab_pointer_reply(globalconf.connection,
xcb_grab_pointer(globalconf.connection, false,
s->root,
MOUSEMASK, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC,
s->root,
globalconf.cursor[CurMove], XCB_CURRENT_TIME),
NULL))
|| !(grab_pointer_r = xcb_grab_pointer_reply(globalconf.connection,
xcb_grab_pointer(globalconf.connection, false,
s->root,
MOUSEMASK, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC,
s->root,
globalconf.cursor[CurMove], XCB_CURRENT_TIME),
NULL)))
return;
p_delete(&grab_pointer_r);
query_pointer_r = xcb_query_pointer_reply(globalconf.connection,
xcb_query_pointer_unchecked(globalconf.connection,
s->root),
@ -187,8 +189,6 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
mouse_resizebar_draw(ctx, style, sw, geometry, c->border);
}
p_delete(&grab_pointer_r);
for(;;)
{
/* TODO: need a review