From a8300f635df78c49dfa2702c9ba7be31e5859c17 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 17 Apr 2009 23:48:09 +0200 Subject: [PATCH] client: maximized does not set need_arrange Signed-off-by: Julien Danjou --- client.c | 2 -- lib/awful/layout/init.lua.in | 13 +++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/client.c b/client.c index 96893d4a..c301e9ea 100644 --- a/client.c +++ b/client.c @@ -855,7 +855,6 @@ client_setmaxhoriz(client_t *c, bool s) } client_resize(c, geometry, c->size_hints_honor); - client_need_arrange(c); client_stack(); ewmh_client_update_hints(c); hook_property(client, c, "maximized_horizontal"); @@ -892,7 +891,6 @@ client_setmaxvert(client_t *c, bool s) } client_resize(c, geometry, c->size_hints_honor); - client_need_arrange(c); client_stack(); ewmh_client_update_hints(c); hook_property(client, c, "maximized_vertical"); diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in index f564f42d..3b0c7013 100644 --- a/lib/awful/layout/init.lua.in +++ b/lib/awful/layout/init.lua.in @@ -94,12 +94,13 @@ end hooks.arrange.register(on_arrange) hooks.property.register(function (c, prop) - if type(c) == "client" and c:isvisible() - and (prop == "size_hints_honor" - or prop == "struts" - or prop == "minimized" - or prop == "sticky" - or prop == "fullscreen") then + if type(c) == "client" and prop == "size_hints_honor" + or prop == "struts" + or prop == "minimized" + or prop == "sticky" + or prop == "fullscreen" + or prop == "maximized_horizontal" + or prop == "maximized_vertical" then on_arrange(c.screen) end end)