diff options
author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2021-12-13 19:44:02 +0100 |
---|---|---|
committer | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2021-12-13 19:44:02 +0100 |
commit | 2f606b50fb216a31df7e6717aae733970ba3e650 (patch) | |
tree | 6001a2fb1526ab9926b94675fe741f3d81e83be5 /src/output.c | |
parent | 15e0751dffc5b112318fd156c40ca4d77aa108be (diff) | |
download | wlclock-2f606b50fb216a31df7e6717aae733970ba3e650.tar.gz wlclock-2f606b50fb216a31df7e6717aae733970ba3e650.tar.bz2 |
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.
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) |