From 7b10530a0dc39c9e9fd228f7eb323d062aca4787 Mon Sep 17 00:00:00 2001 From: Andrei V Date: Thu, 20 Mar 2025 01:06:30 +0300 Subject: XWayland: restore the abstract socket, and make it optional (#9615) * Revert "xwayland: don't create an abstract unix domain socket on linux (#8874)" (#9574) This reverts commit 2b01a5bcf62956a5d641a3367edcd35e103edfcd. * xwayland: make the abstract Unix domain socket optional (#9574) * xwayland: extend the default permissions for a regular Unix domain socket (#9574) * xwayland: a little refactoring for `createSocket` --- src/config/ConfigDescriptions.hpp | 6 ++++++ src/config/ConfigManager.cpp | 1 + 2 files changed, 7 insertions(+) (limited to 'src/config') diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index 1cfbf0e1..6d0d8b1e 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -1319,6 +1319,12 @@ inline static const std::vector CONFIG_OPTIONS = { .type = CONFIG_OPTION_BOOL, .data = SConfigOptionDescription::SBoolData{false}, }, + SConfigOptionDescription{ + .value = "xwayland:create_abstract_socket", + .description = "Create the abstract Unix domain socket for XWayland", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{false}, + }, /* * opengl: diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 82fe2d41..90ec6305 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -652,6 +652,7 @@ CConfigManager::CConfigManager() { registerConfigVar("xwayland:enabled", Hyprlang::INT{1}); registerConfigVar("xwayland:use_nearest_neighbor", Hyprlang::INT{1}); registerConfigVar("xwayland:force_zero_scaling", Hyprlang::INT{0}); + registerConfigVar("xwayland:create_abstract_socket", Hyprlang::INT{0}); registerConfigVar("opengl:nvidia_anti_flicker", Hyprlang::INT{1}); -- cgit v1.2.3