From 40bb63e2061d8dbb82ba5caec786699d5dc7a9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 6 Jan 2020 11:59:26 +0100 Subject: [PATCH] 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. --- selection.c | 3 --- 1 file changed, 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;