From c73b1c8d4e13afe5727551f7103043c26e01cf47 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 17 Aug 2010 21:33:07 +0200 Subject: [PATCH] Revert "Don't call "focus" hook in client_focus()" This reverts commit 27f9c0177a9d37e5b19732f7e9ff67860ab4bd48. This commit broke code like the following because reading client.focus would still return the previously focused client: awful.client.focus.byidx(1) if client.focus then client.focus:raise() end --- client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.c b/client.c index 09a7a4da7..6af6253ef 100644 --- a/client.c +++ b/client.c @@ -446,6 +446,9 @@ client_focus(client_t *c) /* X11 doesn't let you focus a window that isn't viewable */ client_unban(c); + if (!c->nofocus) + client_focus_update(c); + client_set_focus(c, !c->nofocus); }