From 14330f6aec83480fbeddcc0fe18f9718bd0178f4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 17 Apr 2009 23:44:47 +0200 Subject: [PATCH] client: focus change does not call need_arrange Signed-off-by: Julien Danjou --- client.c | 4 ---- lib/awful/layout/init.lua.in | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/client.c b/client.c index 7a89aacc..4de7708f 100644 --- a/client.c +++ b/client.c @@ -257,10 +257,6 @@ client_focus_update(client_t *c) globalconf.screen_focus->prev_client_focus = c; globalconf.screen_focus->client_focus = c; - /* Some layouts use focused client differently, so call them back. - * And anyway, we have maybe unhidden */ - client_need_arrange(c); - /* according to EWMH, we have to remove the urgent state from a client */ client_seturgent(c, false); diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in index 95bce77c..eccd98a4 100644 --- a/lib/awful/layout/init.lua.in +++ b/lib/awful/layout/init.lua.in @@ -105,5 +105,6 @@ hooks.wibox_position.register(function(wibox) end) hooks.padding.register(function(screen) on_arrange(screen) end) +hooks.focus.register(function(c) on_arrange(c.screen) end) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80