on xenial help sign in
ignore the one mouse we detect on arale for some reason
1cf027fMichael Zanetti
qml/DeviceConfiguration.qml+12
@@ -32,6 +32,8 @@ StateGroup {
32 // "phone", "tablet" or "desktop"
32 // "phone", "tablet" or "desktop"
33 property string category: "phone"
33 property string category: "phone"
34
34
35+ property int ignoredMice: 0
36+
35
37
36 property alias name: root.state
38 property alias name: root.state
37
39
@@ -54,6 +56,16 @@ StateGroup {
54 | Qt.InvertedLandscapeOrientation
56 | Qt.InvertedLandscapeOrientation
55 }
57 }
56 },
58 },
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+ },
57 State {
69 State {
58 name: "manta"
70 name: "manta"
59 PropertyChanges {
71 PropertyChanges {
qml/OrientedShell.qml+1−1
@@ -169,7 +169,7 @@ Rectangle {
169 return "tablet";
169 return "tablet";
170 }
170 }
171 } else { // automatic
171 } else { // automatic
172− if (UnityInputInfo.mice > 0) {
172+ if (UnityInputInfo.mice > deviceConfiguration.ignoredMice) {
173 return "desktop";
173 return "desktop";
174 } else {
174 } else {
175 return deviceConfiguration.category;
175 return deviceConfiguration.category;