aboutsummaryrefslogtreecommitdiff
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-03-06 17:17:05 +0100
committerSimon Ser <contact@emersion.fr>2023-06-08 22:11:50 +0200
commitb1b3563d5483482e19616aec0e70de970a591580 (patch)
tree4252044012aa9ff3eee196a236befeba649c0cf1 /include/sway/output.h
parent913a7679cbde98df0722b326d8c3cfc0f0576f6d (diff)
Handle gamma-control-v1 set_gamma events
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4046
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index f6dc6af2..50d90d25 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -57,6 +57,7 @@ struct sway_output {
uint32_t refresh_nsec;
int max_render_time; // In milliseconds
struct wl_event_source *repaint_timer;
+ bool gamma_lut_changed;
};
struct sway_output_non_desktop {
@@ -187,6 +188,8 @@ enum wlr_direction opposite_direction(enum wlr_direction d);
void handle_output_layout_change(struct wl_listener *listener, void *data);
+void handle_gamma_control_set_gamma(struct wl_listener *listener, void *data);
+
void handle_output_manager_apply(struct wl_listener *listener, void *data);
void handle_output_manager_test(struct wl_listener *listener, void *data);