on xenial help sign in
active screen
450ce31Nick Dedekind
qml/ShellApplication.qml+4−3
@@ -26,7 +26,7 @@ Instantiator {
26 property QtObject surfaceMan: SurfaceManager {}
26 property QtObject surfaceMan: SurfaceManager {}
27
27
28 ShellScreen {
28 ShellScreen {
29− id: screen
29+ id: window
30 objectName: "screen"+index
30 objectName: "screen"+index
31 screen: model.screen
31 screen: model.screen
32 visibility: applicationArguments.hasFullscreen ? Window.FullScreen : Window.Windowed
32 visibility: applicationArguments.hasFullscreen ? Window.FullScreen : Window.Windowed
@@ -35,17 +35,18 @@ Instantiator {
35
35
36 Binding {
36 Binding {
37 when: applicationArguments.hasGeometry
37 when: applicationArguments.hasGeometry
38− target: screen
38+ target: window
39 property: "width"
39 property: "width"
40 value: applicationArguments.windowGeometry.width
40 value: applicationArguments.windowGeometry.width
41 }
41 }
42 Binding {
42 Binding {
43 when: applicationArguments.hasGeometry
43 when: applicationArguments.hasGeometry
44− target: screen
44+ target: window
45 property: "height"
45 property: "height"
46 value: applicationArguments.windowGeometry.height
46 value: applicationArguments.windowGeometry.height
47 }
47 }
48
48
49+ Component.onCompleted: screen.active = primary
49 primary: index == 0
50 primary: index == 0
50 }
51 }
51}
52}