Fix potential segfault in client_focus()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-23 17:33:48 +01:00
parent b92a292e43
commit d07ca5f76d
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ client_focus(Client *c, int screen, Bool raise)
} }
else else
XSetInputFocus(globalconf.display, XSetInputFocus(globalconf.display,
RootWindow(globalconf.display, c->phys_screen), RootWindow(globalconf.display, screen_virttophys(screen)),
RevertToPointerRoot, CurrentTime); RevertToPointerRoot, CurrentTime);
widget_invalidate_cache(screen, WIDGET_CACHE_CLIENTS); widget_invalidate_cache(screen, WIDGET_CACHE_CLIENTS);