aboutsummaryrefslogtreecommitdiff
path: root/stable/xdg-shell
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-05-08 22:23:17 +0800
committerJonas Ådahl <jadahl@gmail.com>2017-11-21 16:25:51 +0800
commit43a09b1577ce54a42b46f8b6182306633a695956 (patch)
treeae9383c6a2c009077638d4d0a4f6a77049772f8d /stable/xdg-shell
parentaf6cf5ecac28263acb19968c97cea9f26c50320d (diff)
xdg-shell/surface: Add note about window position and geometry
A client might want to change the window geometry without wanting the window to be moved, for example when changing the width of the border. Point out that the compositor should treat the (x,y) coordinate of the geometry as the top-left corner of the window, and not change the position of the window as it appears on the screen if the (x,y) coordinate changes. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-By: Mike Blumenkrantz <zmike@osg.samsung.com>
Diffstat (limited to 'stable/xdg-shell')
-rw-r--r--stable/xdg-shell/xdg-shell.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml
index 3d19f62..c7dd6dd 100644
--- a/stable/xdg-shell/xdg-shell.xml
+++ b/stable/xdg-shell/xdg-shell.xml
@@ -445,6 +445,11 @@
The window geometry is double buffered, and will be applied at the
time wl_surface.commit of the corresponding wl_surface is called.
+ When maintaining a position, the compositor should treat the (x, y)
+ coordinate of the window geometry as the top left corner of the window.
+ A client changing the (x, y) window geometry coordinate should in
+ general not alter the position of the window.
+
Once the window geometry of the surface is set, it is not possible to
unset it, and it will remain the same until set_window_geometry is
called again, even if a new subsurface or buffer is attached.