summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-05-10 21:23:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-05-10 21:23:28 +0200
commit4e2e218cf0fffd0c74aa4bd44d7abd318166403f (patch)
treefcfd52fedf073cb22a61c5496af49a60c601b8eb /src
parentf68160e7fb3c86bfa14f8ea7faf0f3d104f4a457 (diff)
Save image-bg setting in ~/.fehbg
Diffstat (limited to 'src')
-rw-r--r--src/wallpaper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallpaper.c b/src/wallpaper.c
index 4eaa660..6aa5c6d 100644
--- a/src/wallpaper.c
+++ b/src/wallpaper.c
@@ -471,6 +471,10 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
fputs("fill", fp);
else
fputs("tile", fp);
+ if (opt.image_bg) {
+ fputs(" --image-bg ", fp);
+ fputs(opt.image_bg, fp);
+ }
#ifdef HAVE_LIBXINERAMA
if (opt.xinerama) {
if (opt.xinerama_index >= 0) {