diff options
| author | Félix Poisot <felix@lhfblc.fr> | 2025-12-05 21:51:54 +0000 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2026-01-04 19:48:23 +0100 |
| commit | 26eb393d6dd7631dc5b7edd0df95342d606e907c (patch) | |
| tree | 3cbec86436580be9092bae42373d4dde9fea14b1 /include | |
| parent | 776d445ec5f8a8d5791511c3909d2b02de7c3c31 (diff) | |
sway/commands/output: add color_profile "--device-primaries"
When a display is connected, create a color transform from its
self-reported color characteristics
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 3c380933..16b822fe 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -267,6 +267,12 @@ enum render_bit_depth { RENDER_BIT_DEPTH_10, }; +enum color_profile { + COLOR_PROFILE_DEFAULT, // default is Transform with NULL color_transform + COLOR_PROFILE_TRANSFORM, // use color_transform from output_config + COLOR_PROFILE_TRANSFORM_WITH_DEVICE_PRIMARIES, // create transform from wlr_output +}; + /** * Size and position configuration for a particular output. * @@ -288,7 +294,7 @@ struct output_config { int max_render_time; // In milliseconds int adaptive_sync; enum render_bit_depth render_bit_depth; - bool set_color_transform; + enum color_profile color_profile; struct wlr_color_transform *color_transform; int allow_tearing; int hdr; |
