summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-09-30 17:25:39 +0100
committerVaxry <vaxry@vaxry.net>2024-09-30 17:25:57 +0100
commit3ddb16bd5bb7146d125a7d68e4e9f3b54c381a20 (patch)
treeae8fac53a2e6f7886f5599d5175f45793d18491f /src/Compositor.cpp
parentf6387536f62454f82039b42f641cd8c44153ad47 (diff)
compositor/wayland: up the max buffer size to avoid disconnects when app hangs
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 232ba4a6..25d73db0 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -28,6 +28,7 @@
#include "desktop/LayerSurface.hpp"
#include "render/Renderer.hpp"
#include "xwayland/XWayland.hpp"
+#include "helpers/ByteOperations.hpp"
#include <hyprutils/string/String.hpp>
#include <aquamarine/input/Input.hpp>
@@ -229,6 +230,9 @@ void CCompositor::initServer(std::string socketName, int socketFd) {
if (envEnabled("HYPRLAND_TRACE"))
Debug::trace = true;
+ // set the buffer size to 1MB to avoid disconnects due to an app hanging for a short while
+ wl_display_set_default_max_buffer_size(m_sWLDisplay, 1_MB);
+
Aquamarine::SBackendOptions options;
options.logFunction = aqLog;