summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@chaosdorf.de>2018-06-10 20:21:03 +0200
committerGitHub <noreply@github.com>2018-06-10 20:21:03 +0200
commitd234878944aa2c335089518bdbadfaa7fc8b22f2 (patch)
tree2b5c8bc583f218498c9481712747fb50cf1350c3
parente01b90f90a64ff85384273c8d26a9cc679b2e37f (diff)
parentf7ee0c34bcc2d2ae9075269c53d8b4c10c1594c5 (diff)
Merge pull request #402 from rand-0m/master
bugfix: .fehbg output for --bg-max
-rw-r--r--src/wallpaper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallpaper.c b/src/wallpaper.c
index f1fb149..db14a8c 100644
--- a/src/wallpaper.c
+++ b/src/wallpaper.c
@@ -467,8 +467,10 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
fputs("center", fp);
else if (scaled)
fputs("scale", fp);
- else if (filled)
+ else if (filled == 1)
fputs("fill", fp);
+ else if (filled == 2)
+ fputs("max", fp);
else
fputs("tile", fp);
if (opt.image_bg) {