diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 22:29:45 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 22:29:45 +0000 |
| commit | d706e6828062aa35505d3893fb3c04b84985aa29 (patch) | |
| tree | 0d9489a327012c52fdb93f1a2761fce483108659 /input.c | |
| parent | wayland: window: optimize: set opaque region (diff) | |
selection: track selection type; normal or block selection
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: |
