From 8709fc5353c6ad5e79d324c32673457822d0d08b Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Tue, 9 Apr 2024 14:37:50 +0200 Subject: [PATCH] wayland: Bump connection buffer size to 1MB Let's increase the connection buffer size a bit to avoid killing clients which stall just for a few ms when they receive high frequency input updates. Part-of: --- .gitlab-ci.yml | 7 ++++++- meson.build | 2 +- src/wayland/meta-wayland.c | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 04d438481..0faaa78e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,7 +87,7 @@ variables: - .skip-git-clone variables: FDO_DISTRIBUTION_VERSION: 40 - BASE_TAG: '2024-05-16.0' + BASE_TAG: '2024-06-11.0' MUTTER_USER: 'meta-user' FDO_DISTRIBUTION_PACKAGES: asciidoc @@ -122,11 +122,16 @@ variables: dnf builddep -y gnome-shell --setopt=install_weak_deps=False dnf builddep -y kernel --setopt=install_weak_deps=False dnf builddep -y gi-docgen --setopt=install_weak_deps=False + dnf builddep -y wayland --setopt=install_weak_deps=False ./.gitlab-ci/install-meson-project.sh \ https://gitlab.gnome.org/jadahl/catch.git \ main + ./.gitlab-ci/install-meson-project.sh \ + https://gitlab.freedesktop.org/wayland/wayland.git \ + 1.23.0 + ./.gitlab-ci/install-meson-project.sh \ https://gitlab.gnome.org/GNOME/gi-docgen.git \ main diff --git a/meson.build b/meson.build index e2ff36217..0a15def9e 100644 --- a/meson.build +++ b/meson.build @@ -45,7 +45,7 @@ udev_req = '>= 228' gudev_req = '>= 232' # wayland version requirements -wayland_server_req = '>= 1.22' +wayland_server_req = '>= 1.23' wayland_protocols_req = '>= 1.36' # native backend version requirements diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c index f926f7f49..a9c9c7b33 100644 --- a/src/wayland/meta-wayland.c +++ b/src/wayland/meta-wayland.c @@ -819,6 +819,9 @@ meta_wayland_compositor_new (MetaContext *context) compositor = g_object_new (META_TYPE_WAYLAND_COMPOSITOR, NULL); compositor->context = context; + wl_display_set_default_max_buffer_size (compositor->wayland_display, + 1024 * 1024); + wayland_event_source = wayland_event_source_new (compositor->wayland_display); /* XXX: Here we are setting the wayland event source to have a