From e95ef2bc5f827b9d85c191ca322f983735438aa3 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Thu, 26 Mar 2009 18:20:56 +0000 Subject: [PATCH] Update background when wallpaper was disabled. --- ede-desktop/ede-desktop.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ede-desktop/ede-desktop.cpp b/ede-desktop/ede-desktop.cpp index b98d157..ed355db 100644 --- a/ede-desktop/ede-desktop.cpp +++ b/ede-desktop/ede-desktop.cpp @@ -325,8 +325,15 @@ void Desktop::read_config(void) { if(wmode != WALLPAPER_CENTER && wmode != WALLPAPER_TILE && wmode != WALLPAPER_STRETCH) wmode = WALLPAPER_CENTER; - if(wuse && !wallpaper->load(wpath, (WallpaperState)wmode)) - E_WARNING(E_STRLOC ": unable to load wallpaper '%s'\n", wpath); + if(wuse) { + if(!wallpaper->load(wpath, (WallpaperState)wmode)) + E_WARNING(E_STRLOC ": unable to load wallpaper '%s'\n", wpath); + else + wallpaper->show(); + } + + if(!wuse && wallpaper->visible()) + wallpaper->hide(); /* change background color too */ color(bcolor);