Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing system rotation breaks shell rotation #18

Open
tamara-schmitz opened this issue Mar 20, 2022 · 3 comments
Open

Changing system rotation breaks shell rotation #18

tamara-schmitz opened this issue Mar 20, 2022 · 3 comments
Assignees

Comments

@tamara-schmitz
Copy link

The Raspberry Pi OS image ships a display configuration utility which can be used to edit the X.org config.

It allows you to set a rotation so that for example the Pi desktop is oriented as you would expect.

When you set the display orientation to anything other than none, like "left" for example, the Cutiepi-shell cannot deal with that and will draw outside the screenspace and with the wrong orientation.

Please let the Pi-shell take into account the X11 rotation setting, so that it is possible to use the desktop in landscape mode without breaking Cutiepi-shell.

@penk penk self-assigned this Mar 20, 2022
@penk
Copy link
Contributor

penk commented Mar 20, 2022

@tamara-schmitz thank you so much for reporting this!

In the 2022-01-23 image we did enable Xorg rotation with iio-sensor-proxy, so it does support desktop rotation.

However the Mutter transformation isn't animated, so we did a complicated: sensor rotate -> lock orientation -> (go into Shell) -> use Qt's rotation animation -> (go back to desktop) -> unlock orientation

It works but it's not ideal, and we do need to take for example xrandr or xorg.conf into account.

@tamara-schmitz
Copy link
Author

So if I understand this correctly as of now, when I minimise the Pi-shell there is no desktop rotation. But when I go into cutiepi-shell settings and switch to Desktop Mode there, I get desktop rotation?

@penk
Copy link
Contributor

penk commented Mar 20, 2022

@tamara-schmitz

  • desktop mode and minimize: orientation unlock, mutter handles the rotation
  • cutiepi shell: orientation locked, shell does its own rotation

hope that helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants