wibox: copy pixmap after mapping

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-03 18:26:31 +01:00
parent 993f83b788
commit 528991fae8
1 changed files with 2 additions and 0 deletions

View File

@ -524,6 +524,7 @@ wibox_setvisible(wibox_t *wibox, bool v)
if((wibox->isvisible = v))
{
xcb_map_window(globalconf.connection, wibox->sw.window);
simplewindow_refresh_pixmap(&wibox->sw);
/* stack correctly the wibox */
client_stack();
}
@ -608,6 +609,7 @@ 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);
simplewindow_refresh_pixmap(&wibox->sw);
/* stack correctly the wibox */
client_stack();
}