statusbar: systray inherits the bg color.
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
7409f6e778
commit
93e0b4ecfe
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue