mirror of
https://github.com/swaywm/sway.git
synced 2026-03-20 05:34:28 -04:00
sway/config/output: fix hdr+color_profile conflict detection
Fixes: 26eb393d6d
`color_profile --device-primaries gamma22` was not inhibiting HDR like
all other non-default color_profile values
This commit is contained in:
parent
d44248ce64
commit
d6425c527a
1 changed files with 4 additions and 2 deletions
|
|
@ -555,8 +555,10 @@ static void queue_output_config(struct output_config *oc,
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hdr = oc && oc->hdr == 1;
|
bool hdr = oc && oc->hdr == 1;
|
||||||
if (hdr && oc->color_transform != NULL) {
|
bool color_profile = oc && (oc->color_transform != NULL
|
||||||
sway_log(SWAY_ERROR, "Cannot HDR on output %s: output has an ICC profile set", wlr_output->name);
|
|| oc->color_profile == COLOR_PROFILE_TRANSFORM_WITH_DEVICE_PRIMARIES);
|
||||||
|
if (hdr && color_profile) {
|
||||||
|
sway_log(SWAY_ERROR, "Cannot use HDR on output %s: output has a color profile set", wlr_output->name);
|
||||||
hdr = false;
|
hdr = false;
|
||||||
}
|
}
|
||||||
set_hdr(wlr_output, pending, hdr);
|
set_hdr(wlr_output, pending, hdr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue