From 8f96c079d2788e869fd704de2b040b79c5b9bcac Mon Sep 17 00:00:00 2001 From: Jonas Ådahl Date: Fri, 30 Jun 2017 13:36:46 +0800 Subject: xdg-shell/positioner: Clarify flip semantics with anchor offset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- stable/xdg-shell/xdg-shell.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stable/xdg-shell') 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. -- cgit v1.2.3