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