From ff55663906cb492a07f6baba446e42812618d988 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 28 Jan 2021 16:04:17 +0100 Subject: output: introduce request_state event This allows backends to request the compositor to change the state of an output. References: https://github.com/swaywm/wlroots/issues/2300#issuecomment-761819673 --- include/wlr/interfaces/wlr_output.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr/interfaces') diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index 7ef3de98..cfad8f70 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -146,5 +146,10 @@ void wlr_output_send_frame(struct wlr_output *output); */ void wlr_output_send_present(struct wlr_output *output, struct wlr_output_event_present *event); +/** + * Request the compositor to apply new state. + */ +void wlr_output_send_request_state(struct wlr_output *output, + const struct wlr_output_state *state); #endif -- cgit v1.2.3