From a60dbf5aac2109df09c0bef3b13f71ef97dc5930 Mon Sep 17 00:00:00 2001 From: Mars-Wave <57585293+Mars-Wave@users.noreply.github.com> Date: Sun, 20 Sep 2026 19:26:25 +0200 Subject: [PATCH] Skip automatic applies that change nothing --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 91fcdf4..8d1a3c3 100644 --- a/src/main.c +++ b/src/main.c @@ -41,6 +41,10 @@ static bool has_changes(const struct wd_state *state) { static gboolean send_apply(gpointer data) { struct wd_state *state = data; state->apply_idle = -1; + if (!state->apply_manual && !has_changes(state)) { + state->apply_pending = FALSE; + return FALSE; + } struct wl_list *outputs = calloc(1, sizeof(*outputs)); wl_list_init(outputs); g_autoptr(GList) forms = gtk_container_get_children(GTK_CONTAINER(state->stack));