From 0facfa4da7a292bfddfc5b297de79af01f6299aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 11 Jul 2019 11:10:53 +0200 Subject: [PATCH] input: call selection_finalize() when BTN_LEFT is released --- input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/input.c b/input.c index c18e24c8..8766aa96 100644 --- a/input.c +++ b/input.c @@ -353,6 +353,8 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, case WL_POINTER_BUTTON_STATE_RELEASED: if (button == BTN_LEFT && term->selection.end.col == -1) selection_cancel(term); + else + selection_finalize(term); term->mouse.button = 0; /* For motion events */ term_mouse_up(term, button, term->mouse.row, term->mouse.col,