aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-01-23 17:40:12 +0100
committerMarkus Ongyerth <ongy@ongy.net>2018-01-23 17:40:12 +0100
commit3cf7225cec637c90f4a676aa02dee9ad06dadee9 (patch)
tree2cc642f5bb00a71f75f377abdeb66cd8a72774db /include/wlr
parent03440bbd83b5d68404db8ebc2df310ec0f8c9b32 (diff)
decouples outputenable state and wl_output global
This decouples wlr_output_enable and the wl_global. The previously internal functions wlr_output_(destroy/create)_global are exposed and used automatically in the wlr_output_layout to create/tear down the global. The compositor can handle them itself if it wants to, but I think this is the right moment to create/destroy the wl_output when the wlr_output_layout is used.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 71463cb5..1f0fc1ec 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -89,6 +89,8 @@ struct wlr_output {
struct wlr_surface;
void wlr_output_enable(struct wlr_output *output, bool enable);
+void wlr_output_create_global();
+void wlr_output_destroy_global();
bool wlr_output_set_mode(struct wlr_output *output,
struct wlr_output_mode *mode);
bool wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,