From d7b2bff489087ebcc3e43b52f61593f44bc65585 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 11 Jan 2008 15:41:53 +0100 Subject: [PATCH] use phys_screen not screen --- layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout.c b/layout.c index 82fcd6df..e0dd9f3c 100644 --- a/layout.c +++ b/layout.c @@ -73,7 +73,7 @@ arrange(int screen) curtags[0]->layout->arrange(screen); c = focus_get_current_client(screen); focus(c, True, screen); - if(c && XQueryPointer(globalconf.display, RootWindow(globalconf.display, screen), + if(c && XQueryPointer(globalconf.display, RootWindow(globalconf.display, get_phys_screen(screen)), &root_win, &client_win, &x, &y, &d, &d, &m) && (root_win == None || client_win == None || client_win == root_win)) window_grabbuttons(c->screen, c->win, False, False);