2021-02-12 14:17:32 +00:00
|
|
|
From 6970d4c08014a782a90513ef5ab99c10d9937dd1 Mon Sep 17 00:00:00 2001
|
|
|
|
From: David McKinney <mckinney@subgraph.com>
|
|
|
|
Date: Fri, 12 Feb 2021 13:49:22 +0000
|
|
|
|
Subject: [PATCH] Reinstate wayland-0 as starting display socket for Citadel
|
|
|
|
|
|
|
|
---
|
|
|
|
sway/server.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/sway/server.c b/sway/server.c
|
2022-11-15 17:25:32 +00:00
|
|
|
index f6720755..a870ca22 100644
|
2021-02-12 14:17:32 +00:00
|
|
|
--- a/sway/server.c
|
|
|
|
+++ b/sway/server.c
|
2022-11-15 17:25:32 +00:00
|
|
|
@@ -215,9 +215,9 @@ bool server_init(struct sway_server *server) {
|
|
|
|
wl_signal_add(&server->xdg_activation_v1->events.request_activate,
|
|
|
|
&server->xdg_activation_v1_request_activate);
|
2021-02-12 14:17:32 +00:00
|
|
|
|
|
|
|
- // Avoid using "wayland-0" as display socket
|
|
|
|
+ // Undo: Avoid using "wayland-0" as display socket
|
|
|
|
char name_candidate[16];
|
2022-11-15 17:25:32 +00:00
|
|
|
- for (unsigned int i = 1; i <= 32; ++i) {
|
|
|
|
+ for (unsigned int i = 0; i <= 32; ++i) {
|
|
|
|
snprintf(name_candidate, sizeof(name_candidate), "wayland-%u", i);
|
2021-02-12 14:17:32 +00:00
|
|
|
if (wl_display_add_socket(server->wl_display, name_candidate) >= 0) {
|
|
|
|
server->socket = strdup(name_candidate);
|