From 2f606b50fb216a31df7e6717aae733970ba3e650 Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Mon, 13 Dec 2021 19:44:02 +0100 Subject: Do not update unrelated layer surface settings on configure event Before this patch, wlclock would always update all layer surface settings on every configure event. This is known to create a feedback loop with faulty compositors (see https://github.com/swaywm/sway/pull/6709). While wlclock did nothing wrong before, not updating these settings is more idiomatic. --- src/output.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/output.c') diff --git a/src/output.c b/src/output.c index 708c98f..e9c5f51 100644 --- a/src/output.c +++ b/src/output.c @@ -39,8 +39,6 @@ static void output_update_surface (struct Wlclock_output *output) if ( context.output == NULL || ! strcmp(context.output, output->name) ) create_surface(output); } - else - update_surface(output->surface); } static void output_handle_done (void *data, struct wl_output *wl_output) -- cgit v1.2.3