Explorar el Código

Fixed startup in thumbnail mode with floating window

master
Bert Münnich hace 10 años
padre
commit
c1e084357c
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. +5
    -3
      main.c

+ 5
- 3
main.c Ver fichero

@@ -671,8 +671,6 @@ void run(void)
bool discard, to_set; bool discard, to_set;
XEvent ev, nextev; XEvent ev, nextev;


set_timeout(redraw, 25, false);

while (true) { while (true) {
while (mode == MODE_THUMB && tns.loadnext < tns.end && while (mode == MODE_THUMB && tns.loadnext < tns.end &&
XPending(win.env.dpy) == 0) XPending(win.env.dpy) == 0)
@@ -881,10 +879,14 @@ int main(int argc, char **argv)
tns.thumbs = NULL; tns.thumbs = NULL;
load_image(fileidx); load_image(fileidx);
} }

win_open(&win); win_open(&win);
win_set_cursor(&win, CURSOR_WATCH); win_set_cursor(&win, CURSOR_WATCH);


if (mode == MODE_THUMB)
tns_render(&tns);

set_timeout(redraw, 25, false);

run(); run();
cleanup(); cleanup();




||||||
x
 
000:0
Cargando…
Cancelar
Guardar