Update background when wallpaper was disabled.

This commit is contained in:
Sanel Zukan 2009-03-26 18:20:56 +00:00
parent 0c2831c50e
commit e95ef2bc5f

View File

@ -325,8 +325,15 @@ void Desktop::read_config(void) {
if(wmode != WALLPAPER_CENTER && wmode != WALLPAPER_TILE && wmode != WALLPAPER_STRETCH) if(wmode != WALLPAPER_CENTER && wmode != WALLPAPER_TILE && wmode != WALLPAPER_STRETCH)
wmode = WALLPAPER_CENTER; wmode = WALLPAPER_CENTER;
if(wuse && !wallpaper->load(wpath, (WallpaperState)wmode)) if(wuse) {
if(!wallpaper->load(wpath, (WallpaperState)wmode))
E_WARNING(E_STRLOC ": unable to load wallpaper '%s'\n", wpath); E_WARNING(E_STRLOC ": unable to load wallpaper '%s'\n", wpath);
else
wallpaper->show();
}
if(!wuse && wallpaper->visible())
wallpaper->hide();
/* change background color too */ /* change background color too */
color(bcolor); color(bcolor);