wlc icon indicating copy to clipboard operation
wlc copied to clipboard

Output should be able to be rotated.

Open TMaYaD opened this issue 8 years ago • 16 comments

similar to -rotate option for xrandr.

TMaYaD avatar Nov 17 '15 18:11 TMaYaD

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

Cloudef avatar Nov 23 '15 08:11 Cloudef

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

TMaYaD avatar Dec 01 '15 23:12 TMaYaD

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. :)

TMaYaD avatar Dec 01 '15 23:12 TMaYaD

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

TMaYaD avatar Dec 01 '15 23:12 TMaYaD

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)

Cloudef avatar Dec 02 '15 00:12 Cloudef

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.

harrisonrodgers avatar Apr 17 '16 02:04 harrisonrodgers

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

Cloudef avatar Apr 17 '16 07:04 Cloudef

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.

WovenTales avatar Apr 30 '16 23:04 WovenTales

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

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

ohmysql avatar Aug 29 '16 01:08 ohmysql

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

stevekuznetsov avatar Feb 08 '17 20:02 stevekuznetsov

Any update on this issue?

AndreasBackx avatar May 28 '17 10:05 AndreasBackx

I am also interested - this is a bit blocker for me to currently use sway unfortunately :-(

hnykda avatar Sep 23 '17 15:09 hnykda

As far as sway is concerned - we're working on switching from wlc to a new library, wlroots. It will take some time, but wlroots already supports output rotation.

ddevault avatar Sep 23 '17 15:09 ddevault

Cool, I hope to switch from i3 to Sway as soon as I can then. 👍 Thank you for the update.

AndreasBackx avatar Sep 23 '17 15:09 AndreasBackx

Awesome! Thanks a lot. Do you have some time frame for this change? Like, do you expect weeks or months?

hnykda avatar Sep 23 '17 15:09 hnykda

No.

ddevault avatar Sep 23 '17 15:09 ddevault