Update title when moving selection

This commit is contained in:
Bert
2011-02-19 09:47:53 +01:00
parent c6726ed331
commit a367d35ba0
4 changed files with 22 additions and 13 deletions

12
main.c
View File

@ -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: