aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-11 16:17:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-11 16:17:40 +0000
commit0393521d794b30d601c9eea7e871892bcf62551b (patch)
tree61e7ea1565c73c93a847b4560226fd27a2864658
parentselection: disable source listeners, since we don't currently use them (diff)
input: cancel selection on any mouse *except* BTN_LEFT
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
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);