[client] Need arrange on focus

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-27 21:46:13 +02:00
parent 4047bb6e71
commit bc38b86c80
1 changed files with 3 additions and 0 deletions

View File

@ -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);