Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

Output should be able to be rotated. #43

Open WLCIssuesBot opened 7 years ago

WLCIssuesBot commented 7 years ago

Issue by TMaYaD Tuesday Nov 17, 2015 at 18:57 GMT Originally opened as https://github.com/Cloudef/wlc/issues/86


similar to -rotate option for xrandr.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Monday Nov 23, 2015 at 08:55 GMT


Not sure if possible with drm (perhaps only with certain devices). Would be possible with OpenGL though at least.

WLCIssuesBot commented 7 years ago

Comment by TMaYaD Tuesday Dec 01, 2015 at 23:01 GMT


Complete noob to Wayland here... Does this help? http://www.jlekstrand.net/jason/projects/wayland/transforms/

WLCIssuesBot commented 7 years ago

Comment by TMaYaD Tuesday Dec 01, 2015 at 23:05 GMT


Looks like it's more involved than that. https://ereleaseblog.wordpress.com/2015/05/15/fun-with-drm-and-randr/

Still no clue what hardware planes are. Need to figure it out next fortnight I guess. :)

WLCIssuesBot commented 7 years ago

Comment by TMaYaD Tuesday Dec 01, 2015 at 23:37 GMT


Also, is this related? https://github.com/Cloudef/wlc/issues/64

WLCIssuesBot commented 7 years ago

Comment by Cloudef Wednesday Dec 02, 2015 at 00:01 GMT


No, buffer transformations are for clients. (They may request their buffer to be shown rotated for example, where compositor needs to handle input etc accordingly)

WLCIssuesBot commented 7 years ago

Comment by harrisonrodgers Sunday Apr 17, 2016 at 02:35 GMT


Hi. Could the transform parameter of wl_output be what we want?

This describes the transform that a compositor will apply to a surface to compensate for the rotation or mirroring of an output device.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Sunday Apr 17, 2016 at 07:53 GMT


That's only for communicating the current rotation to client.

WLCIssuesBot commented 7 years ago

Comment by WovenTales Saturday Apr 30, 2016 at 23:16 GMT


I haven't looked at the code of either this or Weston to know how compatible they are, but that does handle my rotated monitor correctly. If nothing else, that might point at one way to handle it.

WLCIssuesBot commented 7 years ago

Comment by ohmysql Monday Aug 29, 2016 at 01:32 GMT


This thread should give an idea how tricky this may prove to be:

https://bugzilla.gnome.org/show_bug.cgi?id=745079

WLCIssuesBot commented 7 years ago

Comment by stevekuznetsov Wednesday Feb 08, 2017 at 20:39 GMT


Looks like that BZ is marked fixed -- will WLC be able to support this feature in the future, then?