statusbar: systray inherits the bg color.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Alex Cornejo 2008-08-25 17:19:49 -04:00 committed by Julien Danjou
parent 7409f6e778
commit 93e0b4ecfe
1 changed files with 6 additions and 1 deletions

View File

@ -61,6 +61,7 @@ statusbar_systray_refresh(statusbar_t *statusbar)
for(systray = statusbar->widgets; systray; systray = systray->next)
if(systray->widget->type == systray_new)
{
uint32_t config_back[] = { globalconf.colors.bg.pixel };
uint32_t config_win_vals[4];
uint32_t config_win_vals_off[2] = { -512, -512 };
xembed_window_t *em;
@ -79,6 +80,10 @@ statusbar_systray_refresh(statusbar_t *statusbar)
/* hide */
pos = Off;
for(em = globalconf.embedded; em; em = em->next)
if(em->phys_screen == statusbar->phys_screen)
xcb_change_window_attributes(globalconf.connection, em->win, XCB_CW_BACK_PIXEL, config_back);
switch(pos)
{
case Left: