From 53a057104461547cb9b88bd859ac10841d4f9a3f Mon Sep 17 00:00:00 2001 From: Mars-Wave <57585293+Mars-Wave@users.noreply.github.com> Date: Mon, 21 Sep 2026 23:36:17 +0200 Subject: [PATCH] Apply automatic changes when a drag ends --- src/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 8d1a3c3..1441e35 100644 --- a/src/main.c +++ b/src/main.c @@ -371,7 +371,9 @@ static void show_apply(struct wd_state *state) { const gchar *page = "title"; if (has_changes(state)) { if (state->autoapply) { - apply_state(state, false); + if (state->clicked == NULL) { + apply_state(state, false); + } } else { page = "apply"; } @@ -817,6 +819,9 @@ static void canvas_drag1_end(GtkGestureDrag *drag, struct wd_state *state = data; set_clicked_head(state, NULL); update_cursor(state); + if (state->autoapply) { + show_apply(state); + } } static void canvas_drag2_begin(GtkGestureDrag *drag,