mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-07 08:21:02 -04: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;
|
break;
|
||||||
|
|
||||||
case WL_POINTER_BUTTON_STATE_RELEASED:
|
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);
|
selection_cancel(term);
|
||||||
else
|
else
|
||||||
selection_finalize(term, serial);
|
selection_finalize(term, serial);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue