[client] Need arrange on focus
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4047bb6e71
commit
bc38b86c80
3
client.c
3
client.c
|
@ -262,6 +262,9 @@ client_focus(client_t *c, int screen)
|
||||||
window_grabbuttons(c->win, c->phys_screen);
|
window_grabbuttons(c->win, c->phys_screen);
|
||||||
phys_screen = c->phys_screen;
|
phys_screen = c->phys_screen;
|
||||||
|
|
||||||
|
/* Some layouts use focused client differently, so call them back. */
|
||||||
|
globalconf.screens[c->screen].need_arrange = true;
|
||||||
|
|
||||||
/* execute hook */
|
/* execute hook */
|
||||||
luaA_client_userdata_new(globalconf.focus->client);
|
luaA_client_userdata_new(globalconf.focus->client);
|
||||||
luaA_dofunction(globalconf.L, globalconf.hooks.focus, 1);
|
luaA_dofunction(globalconf.L, globalconf.hooks.focus, 1);
|
||||||
|
|
Loading…
Reference in New Issue