use phys_screen not screen

This commit is contained in:
Julien Danjou 2008-01-11 15:41:53 +01:00
parent d427ffe4d2
commit d7b2bff489
1 changed files with 1 additions and 1 deletions

View File

@ -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);