input: cancel selection on any mouse *except* BTN_LEFT

This commit is contained in:
Daniel Eklöf 2019-07-11 18:17:40 +02:00
parent 6cd23654cc
commit 0393521d79
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);