From d07ca5f76dbbc00e8d4537412e203a65360b2674 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 23 Mar 2008 17:33:48 +0100 Subject: [PATCH] Fix potential segfault in client_focus() Signed-off-by: Julien Danjou --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 0cac08759..764039262 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);