From 5e9e28e2054968fd58122ea195ae7e84edc228a4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 4 Sep 2008 10:52:54 +0200 Subject: [PATCH] client: do not call need_arrange, use mayvisible Signed-off-by: Julien Danjou --- client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.c b/client.c index 34356c4a..08ab86ae 100644 --- a/client.c +++ b/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;