Client-driven orientation change in Weston

Marius Vlad marius.vlad at collabora.com
Mon Aug 2 09:38:27 UTC 2021


On Mon, Aug 02, 2021 at 10:58:39AM +0200, Guillermo Rodriguez Garcia wrote:
> Hi,
Hi,
> 
> I am asking this because I saw the following from Pekka Paalanen in another
> thread:
> 
> > [...] Can the compositor do it all on its own, does the client need to
> synchronise to the orientation change, does the client need to drive
> the orientation change, etc.
> 
> In Weston I am currently controlling the orientation via transform=xxx in
> the .ini file.
> 
> Is it possible to drive this change dynamically from the client instead?
It is, we have a sort-of working WIP for it, with the help of a private
protocol [1]. With that there's also a simple client that can request an
output rotation, interactively, as well as using an accelerometer that
detects an orientation change and uses that protocol to signal it. 
More details could be find at [2]. Note, that is still need of a polish,
but should work with regular wayland clients.

[1] https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/480/diffs?commit_id=09d7a79a9a18ab48317833680d550a483a5c92b4
[2] https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/480
> 
> BR,
> 
> Guillermo Rodriguez Garcia
> guille.rodriguez at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20210802/fd6fd968/attachment.sig>


More information about the wayland-devel mailing list