aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-27 16:54:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-27 16:54:25 +0000
commita3db31d5cb62bb9afeb1c6cf3ee626abdf061009 (patch)
treef23d5434f505b35b6a53e14673593ca95ea02349 /input.c
parentmeson/pkgbuild: bump to 1.4.2 (diff)
parentdoc: foot.5: modifiers+keys are plural (diff)
Merge branch 'master' into releases/1.4
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)