From fac4b7310706684bbb719287094d9a9bcd73cb01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 4 Apr 2020 12:02:07 +0200 Subject: [PATCH] input: right mouse click extends the current selection --- input.c | 4 ++++ 1 file changed, 4 insertions(+) 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 =