From 0770a8d6435700d87e5753e53fdd2792c1437ea5 Mon Sep 17 00:00:00 2001 From: Joaquim Monteiro Date: Fri, 25 Jul 2025 04:30:42 +0100 Subject: [PATCH 1/2] Add wl_fixes interface --- sway/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/server.c b/sway/server.c index 8615066ee..8ad62c719 100644 --- a/sway/server.c +++ b/sway/server.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -257,6 +258,7 @@ bool server_init(struct sway_server *server) { wl_display_set_global_filter(server->wl_display, filter_global, NULL); wl_display_set_default_max_buffer_size(server->wl_display, 1024 * 1024); + wlr_fixes_create(server->wl_display, 1); root = root_create(server->wl_display); server->backend = wlr_backend_autocreate(server->wl_event_loop, &server->session); From b3dcde8d69c3f1304b076968a7a64f54d0c958be Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 13 Aug 2025 22:53:13 +0200 Subject: [PATCH 2/2] Stop generating wayland-protocols server headers We still need to generate wlr-protocols server headers, as well as client headers and code. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5075 --- protocols/meson.build | 8 -------- sway/tree/container.c | 1 - 2 files changed, 9 deletions(-) diff --git a/protocols/meson.build b/protocols/meson.build index 3414119b8..e7ada59b8 100644 --- a/protocols/meson.build +++ b/protocols/meson.build @@ -9,15 +9,7 @@ wayland_scanner = find_program( protocols = [ wl_protocol_dir / 'stable/tablet/tablet-v2.xml', wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml', - wl_protocol_dir / 'staging/color-management/color-management-v1.xml', - wl_protocol_dir / 'staging/content-type/content-type-v1.xml', wl_protocol_dir / 'staging/cursor-shape/cursor-shape-v1.xml', - wl_protocol_dir / 'staging/ext-foreign-toplevel-list/ext-foreign-toplevel-list-v1.xml', - wl_protocol_dir / 'staging/ext-image-capture-source/ext-image-capture-source-v1.xml', - wl_protocol_dir / 'staging/ext-image-copy-capture/ext-image-copy-capture-v1.xml', - wl_protocol_dir / 'staging/tearing-control/tearing-control-v1.xml', - wl_protocol_dir / 'unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml', - wl_protocol_dir / 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml', wl_protocol_dir / 'unstable/xdg-output/xdg-output-unstable-v1.xml', 'wlr-layer-shell-unstable-v1.xml', 'idle.xml', diff --git a/sway/tree/container.c b/sway/tree/container.c index b63ca0a28..c9ec852fc 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -7,7 +7,6 @@ #include #include #include -#include "linux-dmabuf-unstable-v1-protocol.h" #include "sway/config.h" #include "sway/desktop/transaction.h" #include "sway/input/input-manager.h"