mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-11 05:33:55 -04:00
selection: finalize: ignore whether selections are 'enabled' or not
This fixes an issue where a "forced" selection (shift being pressed while slave is tracking mouse events) would not finalize if the user released shift *before* releasing the mouse button.
This commit is contained in:
parent
457eb573c4
commit
40bb63e206
1 changed files with 0 additions and 3 deletions
|
|
@ -376,9 +376,6 @@ static const struct zwp_primary_selection_source_v1_listener primary_selection_s
|
||||||
void
|
void
|
||||||
selection_finalize(struct terminal *term, uint32_t serial)
|
selection_finalize(struct terminal *term, uint32_t serial)
|
||||||
{
|
{
|
||||||
if (!selection_enabled(term))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (term->selection.start.row == -1 || term->selection.end.row == -1)
|
if (term->selection.start.row == -1 || term->selection.end.row == -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue