aboutsummaryrefslogtreecommitdiff
path: root/stable/xdg-shell
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-06-30 13:36:46 +0800
committerJonas Ådahl <jadahl@gmail.com>2017-11-21 16:25:51 +0800
commit8f96c079d2788e869fd704de2b040b79c5b9bcac (patch)
treedba43db612c9d111f88008a2c3cb9a13c518ec67 /stable/xdg-shell
parent6bff136f30b39677505ee92a0e6ce2cdf9e388f7 (diff)
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>
Diffstat (limited to 'stable/xdg-shell')
-rw-r--r--stable/xdg-shell/xdg-shell.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml
index 366c7a6..4cad982 100644
--- a/stable/xdg-shell/xdg-shell.xml
+++ b/stable/xdg-shell/xdg-shell.xml
@@ -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.