@@ -24,9 +24,11 @@ import "../Components"
2424Item {
2525 id: root
2626
27+ // to be set from outside
2728 property bool interactive: true
2829 property bool dropShadow: true
2930 property real maximizedAppTopMargin
31+ property alias swipeToCloseEnabled: dragArea.enabled
3032
3133 readonly property bool isFullscreen: surface !== null && surfaceContainer.surface.anchors.topMargin == 0
3234
@@ -71,6 +73,11 @@ Item {
7173 property: "enabled"
7274 value: root.interactive
7375 }
76+ Binding {
77+ target: surface
78+ property: "focus"
79+ value: root.interactive
80+ }
7481
7582 Timer { //FIXME - need to delay removing splash screen to allow surface resize to complete
7683 id: surfaceRevealDelay
@@ -136,7 +143,6 @@ Item {
136143 DraggingArea {
137144 id: dragArea
138145 anchors.fill: parent
139− enabled: !root.interactive
140146
141147 property bool moving: false
142148 property real distance: 0