aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/main.c b/main.c
index 46e8e6b..7d8bf3e 100644
--- a/main.c
+++ b/main.c
@@ -386,7 +386,7 @@ void on_keypress(XKeyEvent *kev) {
else
tns.sel = 0;
mode = MODE_THUMBS;
- changed = 1;
+ changed = tns.dirty = 1;
}
break;
@@ -416,19 +416,19 @@ void on_keypress(XKeyEvent *kev) {
/* move selection */
case XK_h:
case XK_Left:
- tns_move_selection(&tns, &win, MOVE_LEFT);
+ changed = tns_move_selection(&tns, &win, MOVE_LEFT);
break;
case XK_j:
case XK_Down:
- tns_move_selection(&tns, &win, MOVE_DOWN);
+ changed = tns_move_selection(&tns, &win, MOVE_DOWN);
break;
case XK_k:
case XK_Up:
- tns_move_selection(&tns, &win, MOVE_UP);
+ changed = tns_move_selection(&tns, &win, MOVE_UP);
break;
case XK_l:
case XK_Right:
- tns_move_selection(&tns, &win, MOVE_RIGHT);
+ changed = tns_move_selection(&tns, &win, MOVE_RIGHT);
break;
}
}
@@ -594,6 +594,8 @@ void run() {
timeout = 75000;
if (mode == MODE_NORMAL)
img.checkpan = 1;
+ else
+ tns.dirty = 1;
}
break;
case ClientMessage: