diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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: |