]> git.mdlowis.com Git - proto/labwc.git/commit
output: fix assert() fail when enabling an output that was disabled
authorJohn Lindgren <john@jlindgren.net>
Sat, 23 Nov 2024 16:10:41 +0000 (11:10 -0500)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 23 Nov 2024 16:47:08 +0000 (17:47 +0100)
commitda1f28f3dd2da1e8e61c8da5c581c270af32eae3
tree577fdbe1aceaca7977ab0a935acaa3d48ccf1623
parent296b28d008ebc9a533a5e949cc1d3afd15584166
output: fix assert() fail when enabling an output that was disabled

When the output is in the process of being enabled, but the new state
has not been committed yet, wlr_output->enabled is still false. So it's
not safe to assert that it's true in output_enable_adaptive_sync().

Fixes: 36e099fc93b3caf87e7f390a732fcec69373de8c
"view: ensure output is usable before setting adaptive sync"
src/output.c