mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
config/output: Only error when enabling HDR
We currently emit errors about HDR support even if HDR is not being requested, which mean errors on every regular modeset when monitors not supporting HDR are connected. Only emit errors when attempting to enable HDR on such device.
This commit is contained in:
parent
b3dcde8d69
commit
73c244fb48
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ bool output_supports_hdr(struct wlr_output *output, const char **unsupported_rea
|
|||
|
||||
static void set_hdr(struct wlr_output *output, struct wlr_output_state *pending, bool enabled) {
|
||||
const char *unsupported_reason = NULL;
|
||||
if (!output_supports_hdr(output, &unsupported_reason)) {
|
||||
if (enabled && !output_supports_hdr(output, &unsupported_reason)) {
|
||||
sway_log(SWAY_ERROR, "Cannot enable HDR on output %s: %s",
|
||||
output->name, unsupported_reason);
|
||||
enabled = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue