Merge pull request #5 from tadeokondrak/fix_log
Fix socket being logged before we have the socket
This commit is contained in:
commit
e4d0039798
1 changed files with 3 additions and 3 deletions
|
@ -52,9 +52,6 @@ server_init(struct kiwmi_server *server)
|
||||||
bool
|
bool
|
||||||
server_run(struct kiwmi_server *server)
|
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);
|
server->socket = wl_display_add_socket_auto(server->wl_display);
|
||||||
if (!server->socket) {
|
if (!server->socket) {
|
||||||
wlr_log(WLR_ERROR, "Failed to open Wayland socket");
|
wlr_log(WLR_ERROR, "Failed to open Wayland socket");
|
||||||
|
@ -63,6 +60,9 @@ server_run(struct kiwmi_server *server)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wlr_log(
|
||||||
|
WLR_DEBUG, "Running Wayland server on display '%s'", server->socket);
|
||||||
|
|
||||||
if (!wlr_backend_start(server->backend)) {
|
if (!wlr_backend_start(server->backend)) {
|
||||||
wlr_log(WLR_ERROR, "Failed to start backend");
|
wlr_log(WLR_ERROR, "Failed to start backend");
|
||||||
wlr_backend_destroy(server->backend);
|
wlr_backend_destroy(server->backend);
|
||||||
|
|
Loading…
Reference in a new issue