From ea8c52dd6a712d0e8e808a473804f503705ec2a9 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 15 Jun 2025 15:44:54 +0300 Subject: [PATCH] xdg-shell/xdg_toplevel: add restricted state Adds a new restricted state to xdg_toplevel, which disallows windows to draw non-window CSD. Signed-off-by: Mihai Fufezan --- stable/xdg-shell/xdg-shell.xml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml index fb7b8b4..c6046fc 100644 --- a/stable/xdg-shell/xdg-shell.xml +++ b/stable/xdg-shell/xdg-shell.xml @@ -29,7 +29,7 @@ DEALINGS IN THE SOFTWARE. - + The xdg_wm_base interface is exposed as a global object enabling clients to turn their wl_surfaces into windows in a desktop environment. It @@ -122,7 +122,7 @@ - + The xdg_positioner provides a collection of rules for the placement of a child surface relative to a parent surface. Rules can be defined to ensure @@ -407,7 +407,7 @@ - + An interface that may be implemented by a wl_surface, for implementations that provide a desktop-style user interface. @@ -617,7 +617,7 @@ - + This interface defines an xdg_surface role which allows a surface to, among other things, set window-like properties such as maximize, @@ -943,6 +943,15 @@ window. + + + The surface's contents are restricted. The client must not draw any + client-side decorations that are outside the window geometry. + + The window geometry specified in the configure event must be obeyed by the + client, or the xdg_wm_base.invalid_surface_state error is raised. + + @@ -1239,7 +1248,7 @@ - + A popup surface is a short-lived, temporary surface. It can be used to implement for example menus, popovers, tooltips and other similar user