summaryrefslogtreecommitdiff
path: root/sway/commands/output.c
diff options
context:
space:
mode:
authorManuel Stoeckl <[email protected]>2021-09-02 21:45:23 -0400
committerSimon Ser <[email protected]>2021-11-23 15:51:54 +0100
commita23cdbbea145e0890627743d316c0ab6fe6c9c1f (patch)
tree586a3c020872b9caa131ebc0ec1896043603f9c9 /sway/commands/output.c
parent5865af75cf8029cc703cda36b68daafcb658c97b (diff)
Add 'output render_bit_depth [8|10]' command
This makes it possible to hint to the renderer and backends how many bits per channel the buffers that the compositor draws windows onto should have. Renderers and backends may deviate from this if they do not support the formats with higher bit depth.
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r--sway/commands/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c
index d8ef2885..42230bd7 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -18,6 +18,7 @@ static const struct cmd_handler output_handlers[] = {
{ "modeline", output_cmd_modeline },
{ "pos", output_cmd_position },
{ "position", output_cmd_position },
+ { "render_bit_depth", output_cmd_render_bit_depth },
{ "res", output_cmd_mode },
{ "resolution", output_cmd_mode },
{ "scale", output_cmd_scale },