aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-09-26 20:45:15 +0200
committerBert Münnich <ber.t@posteo.de>2014-09-26 20:45:15 +0200
commitc1e084357cbf2492c510a2a8e98aae604e8db355 (patch)
tree8f7d5771425820dcbfae6a8c4774e165ba09890e
parenteaa269b6cb486f83229cb0d3dc5f7e03d1c485bb (diff)
Fixed startup in thumbnail mode with floating window
-rw-r--r--main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.c b/main.c
index bc17eda..058731b 100644
--- a/main.c
+++ b/main.c
@@ -671,8 +671,6 @@ void run(void)
bool discard, to_set;
XEvent ev, nextev;
- set_timeout(redraw, 25, false);
-
while (true) {
while (mode == MODE_THUMB && tns.loadnext < tns.end &&
XPending(win.env.dpy) == 0)
@@ -881,10 +879,14 @@ int main(int argc, char **argv)
tns.thumbs = NULL;
load_image(fileidx);
}
-
win_open(&win);
win_set_cursor(&win, CURSOR_WATCH);
+ if (mode == MODE_THUMB)
+ tns_render(&tns);
+
+ set_timeout(redraw, 25, false);
+
run();
cleanup();