aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 22:29:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 22:29:45 +0000
commitd706e6828062aa35505d3893fb3c04b84985aa29 (patch)
tree0d9489a327012c52fdb93f1a2761fce483108659 /input.c
parentwayland: window: optimize: set opaque region (diff)
selection: track selection type; normal or block selection
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 3 insertions, 1 deletions
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: