From 2a165b468eaea6fb9af4a78db58788f1a2c18453 Mon Sep 17 00:00:00 2001 From: daniel <193309918+danielfrrrr@users.noreply.github.com> Date: Wed, 1 Apr 2026 05:47:45 -0300 Subject: [PATCH] layer-shell: bump version from 4 to 5 References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5275 https://github.com/swaywm/sway/commit/8b1f48d25b7d27ed9c3fe3e08a2b948e01d8deec https://github.com/swaywm/sway/commit/d44248ce64c3fe3a477ab096a0e43c7c92241004 --- protocols/wlr-layer-shell-unstable-v1.xml | 21 +++++++++++++++++++-- src/layers.c | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/protocols/wlr-layer-shell-unstable-v1.xml b/protocols/wlr-layer-shell-unstable-v1.xml index d62fd51e..e9f27e4f 100644 --- a/protocols/wlr-layer-shell-unstable-v1.xml +++ b/protocols/wlr-layer-shell-unstable-v1.xml @@ -25,7 +25,7 @@ THIS SOFTWARE. - + Clients can use this interface to assign the surface_layer role to wl_surfaces. Such surfaces are assigned to a "layer" of the output and @@ -100,7 +100,7 @@ - + An interface that may be implemented by a wl_surface, for surfaces that are designed to be rendered as a layer of a stacked desktop-like @@ -367,6 +367,7 @@ + @@ -386,5 +387,21 @@ + + + + + + Requests an edge for the exclusive zone to apply. The exclusive + edge will be automatically deduced from anchor points when possible, + but when the surface is anchored to a corner, it will be necessary + to set it explicitly to disambiguate, as it is not possible to deduce + which one of the two corner edges should be used. + + The edge must be one the surface is anchored to, otherwise the + invalid_exclusive_edge protocol error will be raised. + + + diff --git a/src/layers.c b/src/layers.c index eaa93f25..fbb607f0 100644 --- a/src/layers.c +++ b/src/layers.c @@ -24,7 +24,7 @@ #include "node.h" #include "output.h" -#define LAB_LAYERSHELL_VERSION 4 +#define LAB_LAYERSHELL_VERSION 5 static void apply_override(struct output *output, struct wlr_box *usable_area)