This commit is contained in:
Christopher Snowhill 2026-04-08 12:29:23 +02:00 committed by GitHub
commit 308f172a08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 185 additions and 1 deletions

View file

@ -36,6 +36,17 @@ enum tearing_mode {
LAB_TEARING_FULLSCREEN_FORCED,
};
enum hdr_mode {
LAB_HDR_DISABLED = 0,
LAB_HDR_ENABLED,
};
enum render_bit_depth {
LAB_RENDER_BIT_DEPTH_DEFAULT = 0,
LAB_RENDER_BIT_DEPTH_8,
LAB_RENDER_BIT_DEPTH_10,
};
enum tiling_events_mode {
LAB_TILING_EVENTS_NEVER = 0,
LAB_TILING_EVENTS_REGION = 1 << 0,
@ -74,6 +85,7 @@ struct rcxml {
int gap;
enum adaptive_sync_mode adaptive_sync;
enum tearing_mode allow_tearing;
enum hdr_mode hdr;
bool auto_enable_outputs;
bool reuse_output_mode;
bool xwayland_persistence;

View file

@ -71,6 +71,9 @@ struct wlr_box output_usable_area_in_layout_coords(struct output *output);
void handle_output_power_manager_set_mode(struct wl_listener *listener,
void *data);
void output_enable_adaptive_sync(struct output *output, bool enabled);
void output_enable_hdr(struct output *output, struct wlr_output_state *os,
bool enabled, bool silent);
void output_state_setup_hdr(struct output *output, bool silent);
/**
* Notifies whether a fullscreen view is displayed on the given output.