aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-17 11:08:25 +0100
committerBert <ber.t@gmx.com>2011-02-17 11:08:25 +0100
commit783213c0bbc1b52504c346588742095a766f052d (patch)
tree8c79eaa89cbd1167f1bf33537e31841b92d9abb3 /main.c
parentbcc70bd7cbcdf56e84984929d9f8c6f1776f2204 (diff)
downloadnsxiv-783213c0bbc1b52504c346588742095a766f052d.tar.zst
Use watch-cursor while loading thumbnails
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index ec770e6..d54cda5 100644
--- a/main.c
+++ b/main.c
@@ -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;