summaryrefslogtreecommitdiff
path: root/src/winwidget.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-02-14 22:33:38 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-02-14 22:33:38 +0100
commit5e75b5ef3e7d0270913c04645398bc3596c2a90a (patch)
tree6a6c396f017f4e4c10794d74e3550481be580477 /src/winwidget.c
parent202e6e6d35654010a308017f1c9c8b3e8000c970 (diff)
Only check image dimensions on the fly in multiwindow and slideshow mode
This introduces a new feh_should_ignore_image function which is called at appropriate places in those modes to skip images which are loadable but undesired.
Diffstat (limited to 'src/winwidget.c')
-rw-r--r--src/winwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index 3311383..9600465 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -115,7 +115,7 @@ winwidget winwidget_create_from_file(gib_list * list, char type)
ret->file = list;
ret->type = type;
- if (winwidget_loadimage(ret, file) == 0) {
+ if ((winwidget_loadimage(ret, file) == 0) || feh_should_ignore_image(ret->im)) {
winwidget_destroy(ret);
return(NULL);
}