on xenial help sign in
only close the app when the close button is tapped, not the entire thumbnail
3fd49a6Omer Akram
Dash/Apps/RunningApplicationTile.qml+14−7
@@ -38,13 +38,6 @@ AbstractButton {
38
38
39 property bool terminationModeEnabled: false
39 property bool terminationModeEnabled: false
40
40
41− onClicked: {
42− if (terminationModeEnabled)
43− requestedApplicationTermination(application)
44− else
45− requestedApplicationActivation(application)
46− }
47−
48 onPressAndHold: {
41 onPressAndHold: {
49 if (terminationModeEnabled) {
42 if (terminationModeEnabled) {
50 requestedActivationMode()
43 requestedActivationMode()
@@ -133,5 +126,19 @@ AbstractButton {
133 width: units.gu(6)
126 width: units.gu(6)
134 id: closeIcon
127 id: closeIcon
135 enabled: root.terminationModeEnabled
128 enabled: root.terminationModeEnabled
129+
130+ MouseArea {
131+ anchors.fill: parent
132+ anchors.left: units.gu(1)
133+ anchors.right: units.gu(1)
134+ anchors.top: units.gu(1)
135+ anchors.bottom: units.gu(1)
136+ onClicked: {
137+ if (terminationModeEnabled)
138+ requestedApplicationTermination(application)
139+ else
140+ requestedApplicationActivation(application)
141+ }
142+ }
136 }
143 }
137}
144}