mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
input: call selection_finalize() when BTN_LEFT is released
This commit is contained in:
parent
e7e199d6b5
commit
0facfa4da7
1 changed files with 2 additions and 0 deletions
2
input.c
2
input.c
|
|
@ -353,6 +353,8 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
|
|||
case WL_POINTER_BUTTON_STATE_RELEASED:
|
||||
if (button == BTN_LEFT && term->selection.end.col == -1)
|
||||
selection_cancel(term);
|
||||
else
|
||||
selection_finalize(term);
|
||||
|
||||
term->mouse.button = 0; /* For motion events */
|
||||
term_mouse_up(term, button, term->mouse.row, term->mouse.col,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue