From 4aa4d093f2f5a9e9663d146685ac1fcacf4add8b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 10 Apr 2008 08:57:27 +0200 Subject: [PATCH] [bobmarley] Fix the query pointer request placement Signed-off-by: Julien Danjou --- layout.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layout.c b/layout.c index d1a1504b..f0810bc0 100644 --- a/layout.c +++ b/layout.c @@ -50,10 +50,6 @@ arrange(int screen) xcb_query_pointer_cookie_t qp_c; 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) { 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) 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 */ if((qp_r = xcb_query_pointer_reply(globalconf.connection, qp_c, NULL))) {