Krolyxon
Commit c1e0843

Branches

Refs →

nsxivc1e0843

Fixed startup in thumbnail mode with floating window

Author
Bert Münnich
Date
2014-09-26 20:45 +0200
Parent
eaa269b
Commit
c1e084357cbf2492c510a2a8e98aae604e8db355

+5 −3

1 file changed

  1. M main.c +5 −3
M main.c View
@@ -671,8 +671,6 @@ void run(void)
671671 bool discard, to_set;
672672 XEvent ev, nextev;
673673
674− set_timeout(redraw, 25, false);
675−
676674 while (true) {
677675 while (mode == MODE_THUMB && tns.loadnext < tns.end &&
678676 XPending(win.env.dpy) == 0)
@@ -881,10 +879,14 @@ int main(int argc, char **argv)
881879 tns.thumbs = NULL;
882880 load_image(fileidx);
883881 }
884−
885882 win_open(&win);
886883 win_set_cursor(&win, CURSOR_WATCH);
887884
885+ if (mode == MODE_THUMB)
886+ tns_render(&tns);
887+
888+ set_timeout(redraw, 25, false);
889+
888890 run();
889891 cleanup();
890892