mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-06 01:40:22 -05:00
selection: extending a selection is now interactive
That is, a selection extension can be resized just like an ordinary extension.
This commit is contained in:
parent
50bd51c4d4
commit
7127a0a6c3
3 changed files with 12 additions and 10 deletions
2
input.c
2
input.c
|
|
@ -1171,7 +1171,7 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
|
|||
if (col < 0 || row < 0 || col >= term->cols || row >= term->rows)
|
||||
return;
|
||||
|
||||
bool update_selection = seat->mouse.button == BTN_LEFT;
|
||||
bool update_selection = seat->mouse.button == BTN_LEFT || seat->mouse.button == BTN_RIGHT;
|
||||
bool update_selection_early = term->selection.end.row == -1;
|
||||
|
||||
if (update_selection && update_selection_early)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue