mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-23 18:24:56 +03:00
Skip automatic applies that change nothing
This commit is contained in:
1 parent
fafcfc68e7
commit
a60dbf5aac
1 file changed
+4
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user