ewmh: do not call need_arrange on prop

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-17 23:43:05 +02:00
parent f9311b1e00
commit 37d2b7f2a3
3 changed files with 3 additions and 5 deletions

View File

@ -1446,8 +1446,6 @@ luaA_client_struts(lua_State *L)
ewmh_update_client_strut(c);
client_need_arrange(c);
hook_property(client, c, "struts");
}
}

2
ewmh.c
View File

@ -628,8 +628,6 @@ ewmh_process_client_strut(client_t *c, xcb_get_property_reply_t *strut_r)
c->strut.bottom_start_x = strut[10];
c->strut.bottom_end_x = strut[11];
client_need_arrange(c);
hook_property(client, c, "struts");
}
}

View File

@ -94,7 +94,9 @@ end
hooks.arrange.register(on_arrange)
hooks.property.register(function (c, prop)
if type(c) == "client" and c:isvisible() and prop == "size_hints_honor" then
if type(c) == "client" and c:isvisible()
and (prop == "size_hints_honor"
or prop == "struts") then
on_arrange(c.screen)
end
end)