diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-02-14 22:33:38 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-02-14 22:33:38 +0100 |
commit | 5e75b5ef3e7d0270913c04645398bc3596c2a90a (patch) | |
tree | 6a6c396f017f4e4c10794d74e3550481be580477 /src/winwidget.c | |
parent | 202e6e6d35654010a308017f1c9c8b3e8000c970 (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.c | 2 |
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); } |