Fix _XROOT... hint (pseudotrans) compatibility hack.

SVN revision: 22268
This commit is contained in:
Kim Woelders 2006-04-20 17:09:56 +00:00
parent 0e37f0b5b8
commit 980de43afc
1 changed files with 4 additions and 2 deletions

View File

@ -566,8 +566,6 @@ DeskBackgroundConfigure(Desk * dsk)
}
HintsSetRootInfo(EoGetWin(dsk), pmap, pixel);
if (Conf.hints.set_xroot_info_on_root_window && win != VRoot.win)
HintsSetRootInfo(VRoot.win, pmap, pixel);
}
else if (dsk->bg.bg)
{
@ -660,6 +658,10 @@ DeskBackgroundRefresh(Desk * dsk, int why)
dsk->bg.pmap_set = pmap;
}
if (bg && dsk->viewable)
if (Conf.hints.set_xroot_info_on_root_window && dsk->num > 0)
HintsSetRootInfo(VRoot.win, pmap, pixel);
if (changed)
ModulesSignal(ESIGNAL_BACKGROUND_CHANGE, dsk);
}