@@ -18,8 +18,9 @@ import QtQuick 2.4
1818import Ubuntu.Components 1.3
1919import Unity.Application 0.1
2020
21−Item {
21+FocusScope {
2222 id: root
23+ objectName: "childWindow"
2324
2425 // Set from outside.
2526 property var surface
@@ -43,6 +44,7 @@ Item {
4344 readonly property bool decorated: surface ? surface.type === Mir.UtilityType
4445 || surface.type === Mir.DialogType
4546 || surface.type === Mir.NormalType
47+ || surface.type === Mir.SatelliteType
4648 : false
4749
4850 readonly property bool moveable: decorated
@@ -100,6 +102,7 @@ Item {
100102 height: units.gu(3)
101103 title: root.surface ? root.surface.name : ""
102104 active: root.surface ? root.surface.focused : false
105+ closeButtonVisible: d.decorated
103106 minimizeButtonVisible: false
104107 maximizeButtonShown: false
105108 onPressed: root.surface.activate();
@@ -141,6 +144,8 @@ Item {
141144 // TODO ChildWindow parent will probably want to control those
142145 interactive: true
143146 consumesInput: true
147+
148+ focus: true
144149 }
145150
146151 Loader {