client: call need_arrange before changing attribute
Otherwise it may be not visible after. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1b44fae3b2
commit
faabdff547
1
client.c
1
client.c
|
@ -1164,6 +1164,7 @@ luaA_client_newindex(lua_State *L)
|
||||||
b = luaA_checkboolean(L, 3);
|
b = luaA_checkboolean(L, 3);
|
||||||
if(b != (*c)->ishidden)
|
if(b != (*c)->ishidden)
|
||||||
{
|
{
|
||||||
|
client_need_arrange(*c);
|
||||||
(*c)->ishidden = b;
|
(*c)->ishidden = b;
|
||||||
if(client_isvisible(*c, (*c)->screen))
|
if(client_isvisible(*c, (*c)->screen))
|
||||||
globalconf.screens[(*c)->screen].need_arrange = true;
|
globalconf.screens[(*c)->screen].need_arrange = true;
|
||||||
|
|
Loading…
Reference in New Issue