summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-14 17:40:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-14 17:40:47 +0100
commitd63e1cdd97d9c492733c798d1b5f55c0267b0160 (patch)
treebac910f0a87e598ea0f59367e1b5976ede2568cb
parent942841ef4d99522eed37609a24ecb8786cb51659 (diff)
Do not omit filenames in ~/.fehbg when using --no-xinerama (#456)
-rw-r--r--src/wallpaper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallpaper.c b/src/wallpaper.c
index f0bf891..9df259f 100644
--- a/src/wallpaper.c
+++ b/src/wallpaper.c
@@ -503,7 +503,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
fputc(' ', fp);
if (use_filelist) {
#ifdef HAVE_LIBXINERAMA
- for (int i = 0; (i < num_xinerama_screens) && filelist_pos; i++) {
+ for (int i = 0; (i < opt.xinerama ? num_xinerama_screens : 1) && filelist_pos; i++) {
#else
for (int i = 0; (i < 1 ) && filelist_pos; i++) {
#endif