aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-27 14:44:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-27 14:44:41 +0000
commit7127a0a6c393ee888a7b640c5481e191e0744519 (patch)
tree4e2b5a12d4fcfca02f6b5b6de4d8bfe39d0372b5 /input.c
parenttokenize: handle escaped quotes (diff)
selection: extending a selection is now interactive
That is, a selection extension can be resized just like an ordinary extension.
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index 442cd322..c7f4b073 100644
--- a/input.c
+++ b/input.c
@@ -1171,7 +1171,7 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
if (col < 0 || row < 0 || col >= term->cols || row >= term->rows)
return;
- bool update_selection = seat->mouse.button == BTN_LEFT;
+ bool update_selection = seat->mouse.button == BTN_LEFT || seat->mouse.button == BTN_RIGHT;
bool update_selection_early = term->selection.end.row == -1;
if (update_selection && update_selection_early)