From b9e94f9584514d6e9247d13af75db8b69ebddf64 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sat, 8 Mar 2025 23:23:18 +0300 Subject: [PATCH] seat: only save due to quick-select when resizing ends Moving a selection shouldn't trigger this. --- src/seat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/seat.c b/src/seat.c index 32b12c6..da95470 100644 --- a/src/seat.c +++ b/src/seat.c @@ -182,7 +182,8 @@ static void pointer_handle_button(void *data, struct wl_pointer *wl_pointer, uin struct dp_selection *selection = &state->selection; if (button_state != WL_POINTER_BUTTON_STATE_PRESSED) { - if (selection->width > 0 && selection->height > 0 && state->config.quick_select) { + if (selection->action == DP_SELECTION_ACTION_RESIZING && selection->width > 0 && + selection->height > 0 && state->config.quick_select) { state->status = DP_STATUS_SAVED; } dp_select_stop_interactive(selection);