@@ -18,8 +18,9 @@ import QtQuick 2.4
18import Ubuntu.Components 1.3
18import Ubuntu.Components 1.3
19import Unity.Application 0.1
19import Unity.Application 0.1
23+ objectName: "childWindow"
24 // Set from outside.
25 // Set from outside.
25 property var surface
26 property var surface
@@ -43,6 +44,7 @@ Item {
43 readonly property bool decorated: surface ? surface.type === Mir.UtilityType
44 readonly property bool decorated: surface ? surface.type === Mir.UtilityType
44 || surface.type === Mir.DialogType
45 || surface.type === Mir.DialogType
45 || surface.type === Mir.NormalType
46 || surface.type === Mir.NormalType
47+ || surface.type === Mir.SatelliteType
48 readonly property bool moveable: decorated
50 readonly property bool moveable: decorated
@@ -100,6 +102,7 @@ Item {
100 height: units.gu(3)
102 height: units.gu(3)
101 title: root.surface ? root.surface.name : ""
103 title: root.surface ? root.surface.name : ""
102 active: root.surface ? root.surface.focused : false
104 active: root.surface ? root.surface.focused : false
105+ closeButtonVisible: d.decorated
103 minimizeButtonVisible: false
106 minimizeButtonVisible: false
104 maximizeButtonShown: false
107 maximizeButtonShown: false
105 onPressed: root.surface.activate();
108 onPressed: root.surface.activate();
@@ -141,6 +144,8 @@ Item {
141 // TODO ChildWindow parent will probably want to control those
144 // TODO ChildWindow parent will probably want to control those
142 interactive: true
145 interactive: true
143 consumesInput: true
146 consumesInput: true