on xenial help sign in
ignore the one mouse we detect on arale for some reason
commit1cf027f3d3efdaf2aa975609779aed0878d9c80f authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 1 Jul 2015, 19:52 (11 years ago) parentfef6bb1
2 files changed+13−1
qml/DeviceConfiguration.qml+12 qml/OrientedShell.qml+1−1
qml/DeviceConfiguration.qml+12
@@ -32,6 +32,8 @@ StateGroup {
3232 // "phone", "tablet" or "desktop"
3333 property string category: "phone"
3434
35+ property int ignoredMice: 0
36+
3537
3638 property alias name: root.state
3739
@@ -54,6 +56,16 @@ StateGroup {
5456 | Qt.InvertedLandscapeOrientation
5557 }
5658 },
59+ State {
60+ name: "arale"
61+ PropertyChanges {
62+ target: root
63+ supportedOrientations: Qt.PortraitOrientation
64+ | Qt.LandscapeOrientation
65+ | Qt.InvertedLandscapeOrientation
66+ ignoredMice: 1
67+ }
68+ },
5769 State {
5870 name: "manta"
5971 PropertyChanges {
qml/OrientedShell.qml+1−1
@@ -169,7 +169,7 @@ Rectangle {
169169 return "tablet";
170170 }
171171 } else { // automatic
172− if (UnityInputInfo.mice > 0) {
172+ if (UnityInputInfo.mice > deviceConfiguration.ignoredMice) {
173173 return "desktop";
174174 } else {
175175 return deviceConfiguration.category;