mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Update background when wallpaper was disabled.
This commit is contained in:
parent
0c2831c50e
commit
e95ef2bc5f
@ -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) {
|
||||||
E_WARNING(E_STRLOC ": unable to load wallpaper '%s'\n", wpath);
|
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 */
|
/* change background color too */
|
||||||
color(bcolor);
|
color(bcolor);
|
||||||
|
Loading…
Reference in New Issue
Block a user