client: do not call need_arrange, use mayvisible
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
faabdff547
commit
5e9e28e205
3
client.c
3
client.c
|
@ -1164,9 +1164,8 @@ luaA_client_newindex(lua_State *L)
|
|||
b = luaA_checkboolean(L, 3);
|
||||
if(b != (*c)->ishidden)
|
||||
{
|
||||
client_need_arrange(*c);
|
||||
(*c)->ishidden = b;
|
||||
if(client_isvisible(*c, (*c)->screen))
|
||||
if(client_maybevisible(*c, (*c)->screen))
|
||||
globalconf.screens[(*c)->screen].need_arrange = true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue