diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-22 14:26:02 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-22 14:27:35 -0400 |
commit | 168f0955ab5d6b614eb841bcb0ea684dd9105ef8 (patch) | |
tree | 968cab10e28125c78c54da78444b0a4128fb798c /backend/drm | |
parent | 5055d899550a92d72362efe6add44b2547147599 (diff) |
Add wl_output globals for wlr_outputs
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/backend.c | 1 | ||||
-rw-r--r-- | backend/drm/drm.c | 1 |
2 files changed, 2 insertions, 0 deletions
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 { |