diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2023-07-17 21:40:28 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-06-07 19:01:49 +0200 |
commit | 40ca4150b27a5b94938b6c3d744f74bb26d347f7 (patch) | |
tree | a162451f9508eed3a0f7935d6b2e3615e20f03d2 /include | |
parent | Update for versioned wlroots files (diff) | |
download | sway-40ca4150b27a5b94938b6c3d744f74bb26d347f7.tar.gz sway-40ca4150b27a5b94938b6c3d744f74bb26d347f7.tar.zst sway-40ca4150b27a5b94938b6c3d744f74bb26d347f7.zip |
sway/commands/output: Add command to set color profile
This makes it possible to render output buffers in a different color
space, by specifying an ICC profile for the output.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 3 | ||||
-rw-r--r-- | include/sway/output.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 27058587..0a9fdc70 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -283,6 +283,7 @@ sway_cmd input_cmd_xkb_variant; | |||
283 | 283 | ||
284 | sway_cmd output_cmd_adaptive_sync; | 284 | sway_cmd output_cmd_adaptive_sync; |
285 | sway_cmd output_cmd_background; | 285 | sway_cmd output_cmd_background; |
286 | sway_cmd output_cmd_color_profile; | ||
286 | sway_cmd output_cmd_disable; | 287 | sway_cmd output_cmd_disable; |
287 | sway_cmd output_cmd_dpms; | 288 | sway_cmd output_cmd_dpms; |
288 | sway_cmd output_cmd_enable; | 289 | sway_cmd output_cmd_enable; |
diff --git a/include/sway/config.h b/include/sway/config.h index 5ccc3e77..3e3a104e 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <wlr/interfaces/wlr_switch.h> | 7 | #include <wlr/interfaces/wlr_switch.h> |
8 | #include <wlr/types/wlr_tablet_tool.h> | 8 | #include <wlr/types/wlr_tablet_tool.h> |
9 | #include <wlr/util/box.h> | 9 | #include <wlr/util/box.h> |
10 | #include <wlr/render/color.h> | ||
10 | #include <xkbcommon/xkbcommon.h> | 11 | #include <xkbcommon/xkbcommon.h> |
11 | #include <xf86drmMode.h> | 12 | #include <xf86drmMode.h> |
12 | #include "../include/config.h" | 13 | #include "../include/config.h" |
@@ -285,6 +286,8 @@ struct output_config { | |||
285 | int max_render_time; // In milliseconds | 286 | int max_render_time; // In milliseconds |
286 | int adaptive_sync; | 287 | int adaptive_sync; |
287 | enum render_bit_depth render_bit_depth; | 288 | enum render_bit_depth render_bit_depth; |
289 | bool set_color_transform; | ||
290 | struct wlr_color_transform *color_transform; | ||
288 | 291 | ||
289 | char *background; | 292 | char *background; |
290 | char *background_option; | 293 | char *background_option; |
diff --git a/include/sway/output.h b/include/sway/output.h index d546d488..2189c6e8 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -66,6 +66,8 @@ struct sway_output { | |||
66 | struct wl_signal disable; | 66 | struct wl_signal disable; |
67 | } events; | 67 | } events; |
68 | 68 | ||
69 | struct wlr_color_transform *color_transform; | ||
70 | |||
69 | struct timespec last_presentation; | 71 | struct timespec last_presentation; |
70 | uint32_t refresh_nsec; | 72 | uint32_t refresh_nsec; |
71 | int max_render_time; // In milliseconds | 73 | int max_render_time; // In milliseconds |