From d0d1f2656b8c53f6f52e8f947cdbc2a2e5653ef4 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Wed, 6 Mar 2019 16:26:04 -0700 Subject: [PATCH] fix socket being logged before we have the socket --- kiwmi/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiwmi/server.c b/kiwmi/server.c index 1f9dd77..ab79c0a 100644 --- a/kiwmi/server.c +++ b/kiwmi/server.c @@ -52,9 +52,6 @@ server_init(struct kiwmi_server *server) bool server_run(struct kiwmi_server *server) { - wlr_log( - WLR_DEBUG, "Running Wayland server on display '%s'", server->socket); - server->socket = wl_display_add_socket_auto(server->wl_display); if (!server->socket) { wlr_log(WLR_ERROR, "Failed to open Wayland socket"); @@ -63,6 +60,9 @@ server_run(struct kiwmi_server *server) return false; } + wlr_log( + WLR_DEBUG, "Running Wayland server on display '%s'", server->socket); + if (!wlr_backend_start(server->backend)) { wlr_log(WLR_ERROR, "Failed to start backend"); wlr_backend_destroy(server->backend);