From 5c0716109ba0507cbc84fce51580d8cbb52f6c7a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 3 Nov 2008 16:33:17 +0100 Subject: [PATCH] wibox: stack correctly on attach Signed-off-by: Julien Danjou --- wibox.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wibox.c b/wibox.c index 8c4d06045..cc8fc3c56 100644 --- a/wibox.c +++ b/wibox.c @@ -519,9 +519,14 @@ wibox_setvisible(wibox_t *wibox, bool v) if(v != wibox->isvisible) { if((wibox->isvisible = v)) + { xcb_map_window(globalconf.connection, wibox->sw.window); + /* stack correctly the wibox */ + client_stack(); + } else xcb_unmap_window(globalconf.connection, wibox->sw.window); + /* kick out systray if needed */ wibox_systray_refresh(wibox); @@ -600,6 +605,8 @@ wibox_attach(wibox_t *wibox, screen_t *s) /* draw it right now once to avoid garbage shown */ wibox_draw(wibox); xcb_map_window(globalconf.connection, wibox->sw.window); + /* stack correctly the wibox */ + client_stack(); } else wibox->need_update = true;