mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 09:20:08 +01:00
frontend: Log when exiting due to insufficient active outputs
Signed-off-by: Septatrix <24257556+septatrix@users.noreply.github.com>
This commit is contained in:
parent
3a1101be34
commit
28bdcb46be
1 changed files with 8 additions and 2 deletions
|
|
@ -3044,12 +3044,18 @@ drm_process_layoutputs(struct wet_compositor *wet)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wet->require_outputs == REQUIRE_OUTPUTS_ALL_FOUND &&
|
if (wet->require_outputs == REQUIRE_OUTPUTS_ALL_FOUND &&
|
||||||
failed_layoutputs > 0)
|
failed_layoutputs > 0) {
|
||||||
|
weston_log("Error: Could not enable all found outputs\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
if (wet->require_outputs == REQUIRE_OUTPUTS_ANY &&
|
if (wet->require_outputs == REQUIRE_OUTPUTS_ANY &&
|
||||||
failed_layoutputs == wl_list_length(&wet->layoutput_list))
|
failed_layoutputs == wl_list_length(&wet->layoutput_list)) {
|
||||||
|
weston_log("Error: Could not enable any output\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
weston_log("Warning: No output enabled, but none required "
|
||||||
|
"as per configuration\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue