aboutsummaryrefslogtreecommitdiff
path: root/backend/headless/backend.c
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 /backend/headless/backend.c
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 'backend/headless/backend.c')
-rw-r--r--backend/headless/backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index cef8eec4..5438f1f4 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -15,7 +15,7 @@ static bool backend_start(struct wlr_backend *wlr_backend) {
struct wlr_headless_output *output;
wl_list_for_each(output, &backend->outputs, link) {
wl_event_source_timer_update(output->frame_timer, output->frame_delay);
- wlr_output_update_enabled(&output->wlr_output, true);
+ output->wlr_output.enabled = true;
wl_signal_emit(&backend->backend.events.output_add,
&output->wlr_output);
}