mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-25 03:40:08 +01:00
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>
This commit is contained in:
parent
af6cf5ecac
commit
43a09b1577
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue