diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-07-17 17:24:17 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-07-17 17:24:17 +0200 |
commit | 9de97b3aa26182a6f5d21a52c8e6f5952ae937c1 (patch) | |
tree | bf8d5bddcdfdd5e71d9754807edc312cc43fec0d /src/main.c | |
parent | 946c837a9fe78737020ae0d3a7f1b2e7201ae3ff (diff) | |
parent | 00d45a4d00f45ed378ec5b1f5ae002ca918e58be (diff) |
Merge branch 'patch-1' of https://github.com/giladogit/feh into giladogit-patch-1
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -87,7 +87,7 @@ int main(int argc, char **argv) /* main event loop */ while (feh_main_iteration(1)); - return(0); + return(sig_exit); } /* Return 0 to stop iterating, 1 if ok to continue. */ @@ -104,7 +104,7 @@ int feh_main_iteration(int block) double t1 = 0.0, t2 = 0.0; fehtimer ft; - if (window_num == 0) + if (window_num == 0 || sig_exit != 0) return(0); if (first) { @@ -137,7 +137,7 @@ int feh_main_iteration(int block) if (ev_handler[ev.type]) (*(ev_handler[ev.type])) (&ev); - if (window_num == 0) + if (window_num == 0 || sig_exit != 0) return(0); } XFlush(disp); @@ -208,7 +208,7 @@ int feh_main_iteration(int block) feh_event_handle_stdin(); } } - if (window_num == 0) + if (window_num == 0 || sig_exit != 0) return(0); return(1); |