]> git.draconx.ca Git - fvwmconf.git/blobdiff - common/wallpaper
Add wallpaper setting to SessionInitFunction as well as InitFunction.
[fvwmconf.git] / common / wallpaper
index a80e320ebb4ff09888af4fd83abe5853e62d3b92..b858eb40bbecb520e83efb8a7b5686cbc8eec273 100644 (file)
@@ -22,9 +22,13 @@ AddToFunc   SetWallpaper
  + I Exec exec ln -sf "$0" "$[BGFILE]"
  + I Exec exec $[SETROOT] "$[BGFILE]"
 
-AddToFunc InitFunction
+DestroyFunc SetInitialWallpaper
+AddToFunc   SetInitialWallpaper
  + I Exec if [ -f "$[BGFILE]" ]; then \
               $[SETROOT] "$[BGFILE]"; \
           else \
              $[SETROOT] "$($[FVWM_USERDIR]/scripts/randombg.pl $[BGROOT])"; \
          fi
+
+AddToFunc InitFunction I SetInitialWallpaper
+AddToFunc SessionInitFunction I SetInitialWallpaper