aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-27 14:51:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-27 14:51:39 +0000
commit5c20069588b69298573f4f94fcf6da85411dba94 (patch)
tree8788fb7e264db27de7f75caac475ab960e2f009c /input.c
parentrender: scrollback indicator: render relative indicator "smoothly" (diff)
parentdoc: foot.5: modifiers+keys are plural (diff)
Merge branch 'master' into scrollback-position-indicator
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 fbf6b517..67661eee 100644
--- a/input.c
+++ b/input.c
@@ -1187,7 +1187,7 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
if (seat->mouse.col < 0 || seat->mouse.row < 0)
break;
- 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)