[PATCH wayland-protocols 00/11] Declaring xdg-shell stable

David Edmundson davidedmundson at kde.org
Fri Jun 2 08:54:31 UTC 2017


I have some comments/questions on the current v6 interface which I'd like
clarifying before we make it stable.

The Positioner anchor and gravity both takes the edge as a bitfield of
flags.

It's then part of the protocol to say "If two parallel anchor edges are
specified (e.g. 'left' and 'right'), the invalid_input error is raised."

I don't understand why we don't use 9 enum values; none, topleft, top,
topright etc. as it forbids even the possibility of an invalid input. It's
what we do in the top level resize edge. It seems cleaner and safer wtih no
drawbacks

 ----

Also on the positioner, when I have an offset from an anchor what is the
intended behaviour in the compositor for applying this if I end up flipping
or sliding due to constraints?
Any user interface element isn't going to line up after it's constrained in
the same axis as the offset...unless we allow clients to specify an offset
for every possible constraint.

Regards

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170602/71fdedf4/attachment.html>


More information about the wayland-devel mailing list