From 752e47b19d2af1d5460896df928efac3a533f2cb Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 29 Jul 2008 14:57:18 +0200 Subject: [PATCH] client: call unfocus hook after unfocusing Signed-off-by: Julien Danjou --- client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 2eab34be..76bb606a 100644 --- a/client.c +++ b/client.c @@ -180,11 +180,12 @@ client_updatetitle(client_t *c) static void client_unfocus(client_t *c) { + focus_client_push(NULL); + /* 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); - focus_client_push(NULL); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); ewmh_update_net_active_window(c->phys_screen); }