From 32b31715941f6e4edb40f581e687e9770bd9dfb0 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 22 Apr 2026 10:21:03 +1200 Subject: [PATCH] Generate an error if an invalid anchor is provided. This matches the gravity behaviour and matches what Mutter currently does. Signed-off-by: Robert Ancell --- stable/xdg-shell/xdg-shell.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml index 39ecf8a..8f40157 100644 --- a/stable/xdg-shell/xdg-shell.xml +++ b/stable/xdg-shell/xdg-shell.xml @@ -206,6 +206,7 @@ 'bottom_right'), the anchor point will be at the specified corner; otherwise, the derived anchor point will be centered on the specified edge, or in the center of the anchor rectangle if no edge is specified. + If the anchor is not in the ‘anchor’ enum, an invalid_input error is raised.