[bobmarley] Fix the query pointer request placement

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-10 08:57:27 +02:00
parent 111a89d53f
commit 4aa4d093f2
1 changed files with 4 additions and 4 deletions

View File

@ -50,10 +50,6 @@ arrange(int screen)
xcb_query_pointer_cookie_t qp_c; xcb_query_pointer_cookie_t qp_c;
xcb_query_pointer_reply_t *qp_r; xcb_query_pointer_reply_t *qp_r;
qp_c = xcb_query_pointer_unchecked(globalconf.connection,
xcb_aux_get_screen(globalconf.connection,
phys_screen)->root);
for(c = globalconf.clients; c; c = c->next) for(c = globalconf.clients; c; c = c->next)
{ {
if(client_isvisible(c, screen) && !c->newcomer) if(client_isvisible(c, screen) && !c->newcomer)
@ -83,6 +79,10 @@ arrange(int screen)
if((c = focus_get_current_client(screen)) && globalconf.focus->client != c) if((c = focus_get_current_client(screen)) && globalconf.focus->client != c)
client_focus(c, screen, true); client_focus(c, screen, true);
qp_c = xcb_query_pointer_unchecked(globalconf.connection,
xcb_aux_get_screen(globalconf.connection,
phys_screen)->root);
/* check that the mouse is on a window or not */ /* check that the mouse is on a window or not */
if((qp_r = xcb_query_pointer_reply(globalconf.connection, qp_c, NULL))) if((qp_r = xcb_query_pointer_reply(globalconf.connection, qp_c, NULL)))
{ {