From 0393521d794b30d601c9eea7e871892bcf62551b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 11 Jul 2019 18:17:40 +0200 Subject: [PATCH] input: cancel selection on any mouse *except* BTN_LEFT --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.c b/input.c index 6e0d907d..df7b8a8c 100644 --- a/input.c +++ b/input.c @@ -366,7 +366,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, break; case WL_POINTER_BUTTON_STATE_RELEASED: - if (button == BTN_LEFT && term->selection.end.col == -1) + if (button != BTN_LEFT || term->selection.end.col == -1) selection_cancel(term); else selection_finalize(term, serial);