mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: use output_pending_enabled() in output_basic_test()
This commit is contained in:
parent
ef4997b722
commit
e8b7fe8f39
1 changed files with 1 additions and 4 deletions
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue