aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-04 10:02:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-04 10:02:07 +0000
commitfac4b7310706684bbb719287094d9a9bcd73cb01 (patch)
tree04806d4cb4d93b83eeb159a55a48ac3db9be8b66 /input.c
parentselection: add selection_extend() (diff)
input: right mouse click extends the current selection
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/input.c b/input.c
index 23a0c3a7..22cefa1e 100644
--- a/input.c
+++ b/input.c
@@ -1195,6 +1195,10 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
}
}
+ else if (button == BTN_RIGHT && wayl->mouse.count == 1) {
+ selection_extend(term, wayl->mouse.col, wayl->mouse.row, serial);
+ }
+
else {
for (size_t i = 0; i < ALEN(wayl->conf->bindings.mouse); i++) {
const struct mouse_binding *binding =