aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sway/server.c b/sway/server.c
index 824b1d8e..4745ab6e 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -25,9 +25,8 @@
25#include "sway/tree/layout.h" 25#include "sway/tree/layout.h"
26 26
27 27
28bool server_init(struct sway_server *server) { 28bool server_privileged_prepare(struct sway_server *server) {
29 wlr_log(L_DEBUG, "Initializing Wayland server"); 29 wlr_log(L_DEBUG, "Preparing Wayland server initialization");
30
31 server->wl_display = wl_display_create(); 30 server->wl_display = wl_display_create();
32 server->wl_event_loop = wl_display_get_event_loop(server->wl_display); 31 server->wl_event_loop = wl_display_get_event_loop(server->wl_display);
33 server->backend = wlr_backend_autocreate(server->wl_display, NULL); 32 server->backend = wlr_backend_autocreate(server->wl_display, NULL);
@@ -36,6 +35,12 @@ bool server_init(struct sway_server *server) {
36 wlr_log(L_ERROR, "Unable to create backend"); 35 wlr_log(L_ERROR, "Unable to create backend");
37 return false; 36 return false;
38 } 37 }
38 return true;
39}
40
41bool server_init(struct sway_server *server) {
42 wlr_log(L_DEBUG, "Initializing Wayland server");
43
39 struct wlr_renderer *renderer = wlr_backend_get_renderer(server->backend); 44 struct wlr_renderer *renderer = wlr_backend_get_renderer(server->backend);
40 assert(renderer); 45 assert(renderer);
41 46