aboutsummaryrefslogtreecommitdiff
path: root/sway/server.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-19 14:09:19 -0700
committerGitHub <noreply@github.com>2018-07-19 14:09:19 -0700
commit3483f1ea1ac66f261452f4cb4fea5f6b342b41d1 (patch)
treea81ef9a4d873de4a886ee414872b496838a61160 /sway/server.c
parent4154234eee1fa86f3a01d2f47b4fa632dcd73644 (diff)
parentda9c86c608b33d78e25ced5858be579f502efd63 (diff)
Merge branch 'master' into update-wlroots-1148
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sway/server.c b/sway/server.c
index bad2b7e6..89dfbf8c 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -137,13 +137,19 @@ void server_fini(struct sway_server *server) {
list_free(server->transactions);
}
-void server_run(struct sway_server *server) {
- wlr_log(WLR_INFO, "Running compositor on wayland display '%s'",
+bool server_start_backend(struct sway_server *server) {
+ wlr_log(WLR_INFO, "Starting backend on wayland display '%s'",
server->socket);
if (!wlr_backend_start(server->backend)) {
wlr_log(WLR_ERROR, "Failed to start backend");
wlr_backend_destroy(server->backend);
- return;
+ return false;
}
+ return true;
+}
+
+void server_run(struct sway_server *server) {
+ wlr_log(WLR_INFO, "Running compositor on wayland display '%s'",
+ server->socket);
wl_display_run(server->wl_display);
}