From e8b7fe8f39e049564807ac528c3bdd011355883c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 26 Feb 2024 17:20:12 +0100 Subject: [PATCH] output: use output_pending_enabled() in output_basic_test() --- types/output/output.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/types/output/output.c b/types/output/output.c index 4376da991..da89bb413 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))) {