aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index eac3574..b79cb96 100644
--- a/main.c
+++ b/main.c
@@ -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,