mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
input: cancel selection on any mouse *except* BTN_LEFT
This commit is contained in:
parent
6cd23654cc
commit
0393521d79
1 changed files with 1 additions and 1 deletions
2
input.c
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue