Highlight edges of marked images in thumbnail mode

This commit is contained in:
Bert Münnich
2013-11-14 14:37:08 +01:00
parent 450c1ed9b5
commit 38bc23405d
5 changed files with 50 additions and 16 deletions

8
main.c
View File

@ -65,7 +65,6 @@ win_t win;
fileinfo_t *files;
int filecnt, fileidx;
int markcnt;
int alternate;
int prefix;
@ -493,6 +492,13 @@ void on_buttonpress(XButtonEvent *bev)
break;
}
break;
case Button3:
if ((sel = tns_translate(&tns, bev->x, bev->y)) >= 0) {
files[sel].marked = !files[sel].marked;
tns_mark(&tns, sel, files[sel].marked);
redraw();
}
break;
case Button4:
case Button5:
if (tns_scroll(&tns, bev->button == Button4 ? DIR_UP : DIR_DOWN,