diff --git a/client.c b/client.c index 0cac0875..76403926 100644 --- a/client.c +++ b/client.c @@ -265,7 +265,7 @@ client_focus(Client *c, int screen, Bool raise) } else XSetInputFocus(globalconf.display, - RootWindow(globalconf.display, c->phys_screen), + RootWindow(globalconf.display, screen_virttophys(screen)), RevertToPointerRoot, CurrentTime); widget_invalidate_cache(screen, WIDGET_CACHE_CLIENTS);