Revert "client: remove a few useless client_need_arrange()."
This reverts commit c9caf05c2d
.
- They were not so useless after all, the reason is that before or after setting the new state client_need_arrange() is a no-op.
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d2af75691e
commit
4f447bcbdc
3
client.c
3
client.c
|
@ -800,6 +800,7 @@ client_setminimized(client_t *c, bool s)
|
|||
{
|
||||
if(c->isminimized != s)
|
||||
{
|
||||
client_need_arrange(c);
|
||||
c->isminimized = s;
|
||||
client_need_arrange(c);
|
||||
ewmh_client_update_hints(c);
|
||||
|
@ -817,6 +818,7 @@ client_setsticky(client_t *c, bool s)
|
|||
{
|
||||
if(c->issticky != s)
|
||||
{
|
||||
client_need_arrange(c);
|
||||
c->issticky = s;
|
||||
client_need_arrange(c);
|
||||
ewmh_client_update_hints(c);
|
||||
|
@ -1558,6 +1560,7 @@ luaA_client_newindex(lua_State *L)
|
|||
b = luaA_checkboolean(L, 3);
|
||||
if(b != (*c)->ishidden)
|
||||
{
|
||||
client_need_arrange(*c);
|
||||
(*c)->ishidden = b;
|
||||
client_need_arrange(*c);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue