Fix potential segfault in client_focus()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b92a292e43
commit
d07ca5f76d
2
client.c
2
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);
|
||||
|
|
Loading…
Reference in New Issue