on xenial help sign in
show close button by default, implement closing child windows
commitcedb7ad8992ad3dc96ab513f314cbd8410b1562c authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 6 Mar 2017, 13:14 (10 years ago) parent78e61ae
1 file changed+1−1
qml/Stage/ChildWindow.qml+1−1
qml/Stage/ChildWindow.qml+1−1
@@ -100,7 +100,6 @@ Item {
100100 height: units.gu(3)
101101 title: root.surface ? root.surface.name : ""
102102 active: root.surface ? root.surface.focused : false
103− closeButtonVisible: false
104103 minimizeButtonVisible: false
105104 maximizeButtonShown: false
106105 onPressed: root.surface.activate();
@@ -109,6 +108,7 @@ Item {
109108 d.moveHandler.handlePositionChanged(mouse);
110109 }
111110 onReleased: if (d.moveHandler) { d.moveHandler.handleReleased(); }
111+ onCloseClicked: root.surface.close();
112112 }
113113 }
114114 }