Skip to content

Commit 75cfed6

Browse files
kennylevinsenemersion
authored andcommitted
desktop/output: Clear modeset timer on output manager apply
If a modeset timer exists at the time we apply an output manager config, clear it to avoid a useless double commit. (cherry picked from commit 6334597)
1 parent 4ea5a9c commit 75cfed6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sway/desktop/output.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,10 @@ static void output_manager_apply(struct sway_server *server,
657657
done:
658658
if (ok) {
659659
wlr_output_configuration_v1_send_succeeded(cfg);
660+
if (server->delayed_modeset != NULL) {
661+
wl_event_source_remove(server->delayed_modeset);
662+
server->delayed_modeset = NULL;
663+
}
660664
} else {
661665
wlr_output_configuration_v1_send_failed(cfg);
662666
}

0 commit comments

Comments
 (0)