aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/backend.c12
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);