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:
Daniel Eklöf 2020-01-06 11:59:26 +01:00
parent 457eb573c4
commit 40bb63e206
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -376,9 +376,6 @@ static const struct zwp_primary_selection_source_v1_listener primary_selection_s
void
selection_finalize(struct terminal *term, uint32_t serial)
{
if (!selection_enabled(term))
return;
if (term->selection.start.row == -1 || term->selection.end.row == -1)
return;