mirror of
https://github.com/swaywm/sway.git
synced 2026-06-13 14:33:19 -04:00
output: add color_format command
Allow configuring the output color format (RGB/YPbPr) via the output config. Exposes the value in IPC JSON output.
This commit is contained in:
parent
0bf8731114
commit
101b75fdc2
8 changed files with 63 additions and 0 deletions
|
|
@ -286,6 +286,7 @@ sway_cmd input_cmd_xkb_variant;
|
|||
sway_cmd output_cmd_adaptive_sync;
|
||||
sway_cmd output_cmd_allow_tearing;
|
||||
sway_cmd output_cmd_background;
|
||||
sway_cmd output_cmd_color_format;
|
||||
sway_cmd output_cmd_color_profile;
|
||||
sway_cmd output_cmd_disable;
|
||||
sway_cmd output_cmd_dpms;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <wlr/types/wlr_tablet_tool.h>
|
||||
#include <wlr/util/box.h>
|
||||
#include <wlr/render/color.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include "../include/config.h"
|
||||
|
|
@ -294,6 +295,7 @@ struct output_config {
|
|||
int max_render_time; // In milliseconds
|
||||
int adaptive_sync;
|
||||
enum render_bit_depth render_bit_depth;
|
||||
enum wlr_output_color_format color_format;
|
||||
enum color_profile color_profile;
|
||||
struct wlr_color_transform *color_transform;
|
||||
int allow_tearing;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue