From 85c97f45fd4fca347317a8892872401630151a2a 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 --- objects/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objects/client.c b/objects/client.c index db1dffa03..1fb38187c 100644 --- a/objects/client.c +++ b/objects/client.c @@ -418,6 +418,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); }