summaryrefslogtreecommitdiff
path: root/src/wallpaper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallpaper.c')
-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