aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/interfaces
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-28 16:04:17 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-15 15:39:55 +0000
commitff55663906cb492a07f6baba446e42812618d988 (patch)
tree2983fa74676e24030e91d6e7530ce157486e3426 /include/wlr/interfaces
parent024627e872d586acaa01153ab74b877473a2246d (diff)
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
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r--include/wlr/interfaces/wlr_output.h5
1 files changed, 5 insertions, 0 deletions
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