[PATCH weston 2/4] weston: Move output position setting to compositor
ppaalanen at gmail.com
Fri Oct 7 09:58:00 UTC 2016
On Fri, 30 Sep 2016 23:25:28 +0200
Armin Krezović <krezovic.armin at gmail.com> wrote:
> This moves current output positioning code and scale/transform
> application to the compositor itself, so the compositor
> can configure output layouts any way it wants.
> A helper function for setting x and y coordinates is also
> added, and couple of assertions to weston_output_enable()
> as well, to make sure everything has been set up.
> Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
> compositor/main.c | 26 ++++++++++++++++++++++++++
> libweston/compositor.c | 40 ++++++++++++++++++++++------------------
> libweston/compositor.h | 3 +++
> 3 files changed, 51 insertions(+), 18 deletions(-)
moving the output positioning out from libweston and into the
compositor is very good. The setter for x,y is good too.
I'm just not sure we should assume that outputs cannot occupy the
negative coordinates. If one hotplugs an output to the left, I'd assume
the existing windows would stay put on the right. If we cannot use
negative coordinates, everything has to be moved to keep them at the
same position from the user point of view.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 811 bytes
Desc: OpenPGP digital signature
More information about the wayland-devel