From 3a1cbd6e35f37ac9283bdca52ef1cb7d9cfcd5cb Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Aug 2009 17:49:28 +0200 Subject: [PATCH] client: emit property::workarea on events if client has strut Signed-off-by: Julien Danjou --- client.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client.c b/client.c index 556563211..c88242884 100644 --- a/client.c +++ b/client.c @@ -929,6 +929,8 @@ client_set_minimized(lua_State *L, int cidx, bool s) else window_state_set(c->window, XCB_WM_STATE_NORMAL); ewmh_client_update_hints(c); + if(strut_has_value(&c->strut)) + screen_emit_signal(globalconf.L, c->screen, "property::workarea", 0); /* execute hook */ hook_property(c, "minimized"); luaA_object_emit_signal(L, cidx, "property::minimized", 0); @@ -1268,6 +1270,9 @@ client_unmanage(client_t *c) luaA_class_emit_signal(globalconf.L, &client_class, "list", 0); + if(strut_has_value(&c->strut)) + screen_emit_signal(globalconf.L, c->screen, "property::workarea", 0); + window_state_set(c->window, XCB_WM_STATE_WITHDRAWN); titlebar_client_detach(c); @@ -1656,6 +1661,8 @@ luaA_client_set_hidden(lua_State *L, client_t *c) c->hidden = b; client_need_reban(c); hook_property(c, "hidden"); + if(strut_has_value(&c->strut)) + screen_emit_signal(globalconf.L, c->screen, "property::workarea", 0); luaA_object_emit_signal(L, -3, "property::hidden", 0); } return 0;