In case of a failed atomic commit the previous mode should be fallen back to.
For orientation provide again a setter that DRM backend can use to set the
transform back to the last working one.
Details
Details
- Reviewers
- None
- Group Reviewers
KWin - Maniphest Tasks
- T11670: Improve Wayland output rotation
- Commits
- R108:b7dbe0e88a43: Set orientation from DRM on fallback
Compiles, fallback works, cursor still messed up somewhat (scaling issue?).
Diff Detail
Diff Detail
- Repository
- R108 KWin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Thank you for looking into this! The way conversion between Qt::ScreenOrientations and DeviceInterface::Transform is done seems to be wrong.
Mixing both Qt::PortraitOrientation and Qt::InvertedPortraitOrientation doesn't make sense. Wouldn't it be better to introduce a screen transformation enum and use it instead of Qt::ScreenOrientations?
Comment Actions
Yes, it would be better I believe. But I wanted to first try to fix the current approach before thinking about replacing it.
Comment Actions
I don't see any particular reason that holds us from doing that, but meh fair enogh. Could you please create a Phabricator task so we don't forget to refactor this code?