titlebar: execute property hook rather than setting need_arrange
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
dfc01b2599
commit
f46559e239
|
@ -104,7 +104,8 @@ hooks.property.register(function (obj, prop)
|
|||
or prop == "maximized_horizontal"
|
||||
or prop == "maximized_vertical"
|
||||
or prop == "border_width"
|
||||
or prop == "hide" then
|
||||
or prop == "hide"
|
||||
or prop == "titlebar" then
|
||||
on_arrange(obj.screen)
|
||||
elseif prop == "screen" then
|
||||
-- If prop is screen, we do not know what was the previous screen, so
|
||||
|
|
|
@ -223,7 +223,7 @@ titlebar_client_detach(client_t *c)
|
|||
wibox_unref(globalconf.L, c->titlebar);
|
||||
c->titlebar = NULL;
|
||||
|
||||
client_need_arrange(c);
|
||||
hook_property(client, c, "titlebar");
|
||||
client_stack();
|
||||
}
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ titlebar_client_attach(client_t *c)
|
|||
|
||||
xcb_map_window(globalconf.connection, t->sw.window);
|
||||
|
||||
client_need_arrange(c);
|
||||
hook_property(client, c, "titlebar");
|
||||
client_stack();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue