on xenial help sign in
Fix long-screen-edge check, per mzanetti
b1e36e5Michael Terry
qml/OrientedShell.qml+1−2
@@ -111,8 +111,7 @@ Rectangle {
111 unity8Settings.usageMode = "Staged";
111 unity8Settings.usageMode = "Staged";
112 }
112 }
113 } else {
113 } else {
114− var longEdgeWidth = Math.max(root.width, root.height)
114+ if (Math.min(Screen.width, Screen.height) > units.gu(60)) {
115− if (longEdgeWidth > units.gu(90)){
116 if (pointerInputDevices > 0 && pointerInputDevices > miceModel.oldCount + touchPadModel.oldCount) {
115 if (pointerInputDevices > 0 && pointerInputDevices > miceModel.oldCount + touchPadModel.oldCount) {
117 unity8Settings.usageMode = "Windowed";
116 unity8Settings.usageMode = "Windowed";
118 }
117 }