wibox: copy pixmap after mapping
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
993f83b788
commit
528991fae8
2
wibox.c
2
wibox.c
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue