Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Enable greeter rotation on landscape devices #373

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion qml/Shell.qml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ StyledItem {

readonly property bool orientationChangesEnabled: panel.indicators.fullyClosed
&& stage.orientationChangesEnabled
&& (!greeter || !greeter.animating)
&& !greeter.animating

readonly property bool showingGreeter: greeter && greeter.shown

Expand All @@ -90,6 +90,9 @@ StyledItem {
if (startingUp) {
// Ensure we don't rotate during start up
return Qt.PrimaryOrientation;
} else if (showingGreeter
&& (shell.orientations.primary == Qt.LandscapeOrientation || shell.orientations.primary == Qt.InvertedLandscapeOrientation)) {
return Qt.LandscapeOrientation | Qt.InvertedLandscapeOrientation;
} else if (showingGreeter || notifications.topmostIsFullscreen) {
return Qt.PrimaryOrientation;
} else {
Expand Down