aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-06 10:59:26 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-06 10:59:26 +0000
commit40bb63e2061d8dbb82ba5caec786699d5dc7a9a3 (patch)
treec99ade411cd24b81a1aaad81d266e05740d12a1f
parentselection: update: don't dirty cells that don't change state (diff)
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.
-rw-r--r--selection.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/selection.c b/selection.c
index 1570e353..2c7bc0b2 100644
--- a/selection.c
+++ b/selection.c
@@ -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;