mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2026-05-09 02:28:20 +02:00
xdg-shell/positioner: Clarify flip semantics with anchor offset
While there is no currently known usages of setting an anchor offset on the same axis as the 'flip' constraint action is set, it must still be specified so compositors behave the same. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
6bff136f30
commit
8f96c079d2
1 changed files with 4 additions and 0 deletions
|
|
@ -298,6 +298,10 @@
|
|||
surface is constrained, the gravity is 'bottom' and the anchor is
|
||||
'bottom', change the gravity to 'top' and the anchor to 'top'.
|
||||
|
||||
The adjusted position is calculated given the original anchor
|
||||
rectangle and offset, but with the new flipped anchor and gravity
|
||||
values.
|
||||
|
||||
If the adjusted position also ends up being constrained, the resulting
|
||||
position of the flip_y adjustment will be the one before the
|
||||
adjustment.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue