client: maximized does not set need_arrange

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-17 23:48:09 +02:00
parent d6ff48a108
commit a8300f635d
2 changed files with 7 additions and 8 deletions

View File

@ -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");

View File

@ -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"
if type(c) == "client" and prop == "size_hints_honor"
or prop == "struts"
or prop == "minimized"
or prop == "sticky"
or prop == "fullscreen") then
or prop == "fullscreen"
or prop == "maximized_horizontal"
or prop == "maximized_vertical" then
on_arrange(c.screen)
end
end)