client: maximized does not set need_arrange
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d6ff48a108
commit
a8300f635d
2
client.c
2
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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue