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 <robert.ancell@canonical.com>
This commit is contained in:
Robert Ancell 2026-04-22 10:21:03 +12:00
parent 911ab509ed
commit 32b3171594
No known key found for this signature in database
GPG key ID: 5A4D9816CA519FBD

View file

@ -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.
</description>
<arg name="anchor" type="uint" enum="anchor"
summary="anchor"/>