diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-23 10:13:05 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-09-23 10:13:05 -0400 |
commit | 0699aa62d805fe61151189ab9989178fbbb456f2 (patch) | |
tree | 53a7f9056ea479b5541d754f881da9c3e02dcdd2 /backend | |
parent | b6d7c3ed8ec6ae29af5d585db5417394ff49f3c7 (diff) |
Initial pass on roots_input
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/backend.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index 3ac2ea7d..264ce338 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -35,6 +35,12 @@ static bool wlr_wl_backend_start(struct wlr_backend *_backend) { struct wlr_wl_backend *backend = (struct wlr_wl_backend *)_backend; wlr_log(L_INFO, "Initializating wayland backend"); + wlr_wl_registry_poll(backend); + if (!(backend->compositor) || (!(backend->shell))) { + wlr_log_errno(L_ERROR, "Could not obtain retrieve required globals"); + return false; + } + backend->started = true; for (size_t i = 0; i < backend->requested_outputs; ++i) { wlr_wl_output_create(&backend->backend); @@ -139,12 +145,6 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display) { return false; } - wlr_wl_registry_poll(backend); - if (!(backend->compositor) || (!(backend->shell))) { - wlr_log_errno(L_ERROR, "Could not obtain retrieve required globals"); - return false; - } - wlr_egl_init(&backend->egl, EGL_PLATFORM_WAYLAND_EXT, backend->remote_display); wlr_egl_bind_display(&backend->egl, backend->local_display); |