[PATCH weston 2/4] weston: Move output position setting to compositor

Armin Krezović krezovic.armin at gmail.com
Sun Oct 9 17:04:19 UTC 2016

On 07.10.2016 11:58, Pekka Paalanen wrote:
> 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(-)
> Hi,
> 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.
> Thanks,
> pq


I'd rather go for the second approach - move everything to the output it
was on, in case an output gets attached on the left of an output that had
something displayed (weston_output_move() can be easily adapted).

Thanks, Armin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 837 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20161009/9ca73078/attachment-0001.sig>

More information about the wayland-devel mailing list