aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2024-02-26 17:20:12 +0100
committerSimon Ser <contact@emersion.fr>2024-02-26 17:20:12 +0100
commite8b7fe8f39e049564807ac528c3bdd011355883c (patch)
tree953ebb0d938fcf320ff67575af0b07c1f53c7b16
parentef4997b722fa0b88607ebee6fadb10b01a3f4f29 (diff)
output: use output_pending_enabled() in output_basic_test()
-rw-r--r--types/output/output.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/types/output/output.c b/types/output/output.c
index 4376da99..da89bb41 100644
--- a/types/output/output.c
+++ b/types/output/output.c
@@ -583,10 +583,7 @@ static bool output_basic_test(struct wlr_output *output,
wlr_drm_format_finish(&format);
}
- bool enabled = output->enabled;
- if (state->committed & WLR_OUTPUT_STATE_ENABLED) {
- enabled = state->enabled;
- }
+ bool enabled = output_pending_enabled(output, state);
if (enabled && (state->committed & (WLR_OUTPUT_STATE_ENABLED |
WLR_OUTPUT_STATE_MODE))) {