Use watch-cursor while loading thumbnails

This commit is contained in:
Bert
2011-02-17 11:08:25 +01:00
parent bcc70bd7cb
commit 783213c0bb
3 changed files with 20 additions and 10 deletions

5
main.c
View File

@ -476,9 +476,12 @@ void run() {
while (1) {
if (mode == MODE_THUMBS && tns_loaded < filecnt) {
win_set_cursor(&win, CURSOR_WATCH);
tns_load(&tns, &win, filenames[tns_loaded++]);
tns_render(&tns, &win);
if (!XPending(win.env.dpy))
if (tns_loaded == filecnt)
win_set_cursor(&win, CURSOR_ARROW);
else if (!XPending(win.env.dpy))
continue;
} else if (timeout) {
t.tv_sec = 0;