ice-wm / icewm

IceWM releases only, see Wiki
https://github.com/ice-wm/icewm/releases
Other
289 stars 16 forks source link

v2.8.0 - background image (as specified in theme) no longer changes with theme change #70

Closed Corin-EU closed 2 years ago

Corin-EU commented 2 years ago

In the default.theme file of each theme, a background image can be specified.

With icewm v2.7.0, when the theme was changed (by selecting a different theme than the current from the Themes menu), the background desktop wallpaper changed to the image specified in the newly selected theme.

Upon upgrading from v2.7.0 to v2.8.0, it is observed that the background image does not change but stays on the image specified in the original theme used on icewm startup,

Perhaps this is related to the CHANGE

                Let icewmbg pixmaps free its associated Image to reduce memory usage
Corin-EU commented 2 years ago

After further testing, I have found that the failure to change the background image was not from standard icewm configuration but because I was preloading the background image with icewmbg before icewm-session started. On an old slow machine where IceWM is predominantly used as the window manager this has not appeared as a problem perhaps because of the long time taken to start up, but when doing the testing on a much faster machine, the preloading process was running with the parameter of the image to load, and thus the parameterless icewmbg (allowing change of background accoridng to the theme) from the icewm-session has not replaced it. So doing a wmbg -q ; sleep 1 in my image background setting script has resolved my problem to ensure that a clean wmbg started from the icewm-session is running and thus the background image changes on theme change.