@@ -103,6 +103,23 @@ Rectangle {
103103 GSettingsController.setUsageMode("com.canonical.Unity8", "Staged")
104104 }
105105 }
106+ },
107+ State {
108+ name: "desktop"
109+ PropertyChanges {
110+ target: shellLoader
111+ width: units.gu(100)
112+ height: units.gu(71)
113+ }
114+ PropertyChanges {
115+ target: mouseEmulation
116+ checked: false
117+ }
118+ StateChangeScript {
119+ script: {
120+ GSettingsController.setUsageMode("com.canonical.Unity8", "Windowed")
121+ }
122+ }
106123 }
107124 ]
108125
@@ -160,7 +177,7 @@ Rectangle {
160177 anchors { left: parent.left; right: parent.right }
161178 activeFocusOnPress: false
162179 text: "Size"
163− model: ["phone", "tablet"]
180+ model: ["phone", "tablet", "desktop"]
164181 onSelectedIndexChanged: {
165182 shellLoader.active = false;
166183 shellLoader.state = model[selectedIndex];
@@ -713,8 +730,9 @@ Rectangle {
713730
714731 function test_launchedAppHasActiveFocus_data() {
715732 return [
716− {tag:"phone", formFactor:"phone"},
717− {tag:"tablet", formFactor:"tablet"},
733+ {tag: "phone", formFactor: "phone"},
734+ {tag: "tablet", formFactor: "tablet"},
735+ {tag: "desktop", formFactor: "desktop"}
718736 ];
719737 }
720738
@@ -1210,7 +1228,8 @@ Rectangle {
12101228 function test_stageLoader_data() {
12111229 return [
12121230 {tag: "phone", source: "Stages/PhoneStage.qml"},
1213− {tag: "tablet", source: "Stages/TabletStage.qml"}
1231+ {tag: "tablet", source: "Stages/TabletStage.qml"},
1232+ {tag: "desktop", source: "Stages/DesktopStage.qml"}
12141233 ]
12151234 }
12161235