1
0
forked from brl/citadel
citadel/meta-citadel/recipes-sway/sway/files/0001-Reinstate-wayland-0-as-starting-display-socket-for-C.patch

26 lines
1012 B
Diff
Raw Permalink Normal View History

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
index f6720755..a870ca22 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -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);
- // Avoid using "wayland-0" as display socket
+ // Undo: Avoid using "wayland-0" as display socket
char name_candidate[16];
- 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);
if (wl_display_add_socket(server->wl_display, name_candidate) >= 0) {
server->socket = strdup(name_candidate);