on xenial help sign in
Fix long-screen-edge check, per mzanetti
commitb1e36e5bf84ef320453ea6d711872b6c7fee83cf authorMichael Terry <michael.terry@canonical.com> dateTue 12 Apr 2016, 09:45 (11 years ago) parent1f21965
1 file changed+1−2
qml/OrientedShell.qml+1−2
qml/OrientedShell.qml+1−2
@@ -111,8 +111,7 @@ Rectangle {
111111 unity8Settings.usageMode = "Staged";
112112 }
113113 } else {
114− var longEdgeWidth = Math.max(root.width, root.height)
115− if (longEdgeWidth > units.gu(90)){
114+ if (Math.min(Screen.width, Screen.height) > units.gu(60)) {
116115 if (pointerInputDevices > 0 && pointerInputDevices > miceModel.oldCount + touchPadModel.oldCount) {
117116 unity8Settings.usageMode = "Windowed";
118117 }