mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -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:
|
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
|
||||||
|
selection_finalize(term);
|
||||||
|
|
||||||
term->mouse.button = 0; /* For motion events */
|
term->mouse.button = 0; /* For motion events */
|
||||||
term_mouse_up(term, button, term->mouse.row, term->mouse.col,
|
term_mouse_up(term, button, term->mouse.row, term->mouse.col,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue