From d706e6828062aa35505d3893fb3c04b84985aa29 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 3 Jan 2020 23:29:45 +0100 Subject: selection: track selection type; normal or block selection --- input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index 7f81da8d..0d0f1e4f 100644 --- a/input.c +++ b/input.c @@ -581,7 +581,9 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, if (button == BTN_LEFT) { switch (wayl->mouse.count) { case 1: - selection_start(term, wayl->mouse.col, wayl->mouse.row); + selection_start( + term, wayl->mouse.col, wayl->mouse.row, + wayl->kbd.ctrl ? SELECTION_BLOCK : SELECTION_NORMAL); break; case 2: -- cgit v1.3