[PATCH wayland-protocols v3 05/17] xdg-shell/positioner: Allow empty anchor_rect
Jonas Ådahl
jadahl at gmail.com
Wed Nov 15 11:19:54 UTC 2017
Allow setting an empty anchor rectangle, so that one can map a popup
against a coordinate, not a pixel.
Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
Reviewed-By: Mike Blumenkrantz <zmike at osg.samsung.com>
---
stable/xdg-shell/xdg-shell.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml
index 2be4599..e64bd3e 100644
--- a/stable/xdg-shell/xdg-shell.xml
+++ b/stable/xdg-shell/xdg-shell.xml
@@ -165,13 +165,13 @@
Specify the anchor rectangle within the parent surface that the child
surface will be placed relative to. The rectangle is relative to the
window geometry as defined by xdg_surface.set_window_geometry of the
- parent surface. The rectangle must be at least 1x1 large.
+ parent surface.
When the xdg_positioner object is used to position a child surface, the
anchor rectangle may not extend outside the window geometry of the
positioned child's parent surface.
- If a zero or negative size is set the invalid_input error is raised.
+ If a negative size is set the invalid_input error is raised.
</description>
<arg name="x" type="int" summary="x position of anchor rectangle"/>
<arg name="y" type="int" summary="y position of anchor rectangle"/>
--
2.14.2
More information about the wayland-devel
mailing list