From 168f0955ab5d6b614eb841bcb0ea684dd9105ef8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 22 Jun 2017 14:26:02 -0400 Subject: Add wl_output globals for wlr_outputs --- backend/drm/backend.c | 1 + backend/drm/drm.c | 1 + 2 files changed, 2 insertions(+) (limited to 'backend/drm') diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 34c03eea..d52adba9 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -118,6 +118,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, state->drm_invalidated.notify = drm_invalidated; wlr_udev_signal_add(udev, state->dev, &state->drm_invalidated); + state->display = display; struct wl_event_loop *event_loop = wl_display_get_event_loop(display); state->drm_event = wl_event_loop_add_fd(event_loop, state->fd, diff --git a/backend/drm/drm.c b/backend/drm/drm.c index e4790dec..c6e29b86 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -564,6 +564,7 @@ void wlr_drm_scan_connectors(struct wlr_backend_state *state) { scan_property_ids(state->fd, conn, output); + wlr_output_create_global(wlr_output, state->display); list_add(state->outputs, output); wlr_log(L_INFO, "Found display '%s'", wlr_output->name); } else { -- cgit v1.2.3