client: call unfocus hook after unfocusing

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-29 14:57:18 +02:00
parent 8ba4eb6f90
commit 752e47b19d
1 changed files with 3 additions and 2 deletions

View File

@ -180,11 +180,12 @@ client_updatetitle(client_t *c)
static void static void
client_unfocus(client_t *c) client_unfocus(client_t *c)
{ {
focus_client_push(NULL);
/* Call hook */ /* Call hook */
luaA_client_userdata_new(globalconf.L, globalconf.focus->client); luaA_client_userdata_new(globalconf.L, c);
luaA_dofunction(globalconf.L, globalconf.hooks.unfocus, 1, 0); luaA_dofunction(globalconf.L, globalconf.hooks.unfocus, 1, 0);
focus_client_push(NULL);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
ewmh_update_net_active_window(c->phys_screen); ewmh_update_net_active_window(c->phys_screen);
} }