@@ -55,11 +55,13 @@ StyledItem {
5555 name: "Ubuntu.Components.Themes.Ambiance"
5656 }
5757
58+ signal dismissed()
59+
5860 readonly property bool expanded: {
5961 var result = false;
6062
6163 if (type === Notification.SnapDecision) {
62− if (ListView.view.currentIndex === index) {
64+ if (ListView.view.currentIndex === index || fullscreen) {
6365 result = true;
6466 } else {
6567 if (ListView.view.count > 2) {
@@ -103,10 +105,11 @@ StyledItem {
103105 ListView.view.currentIndex = -1;
104106 }
105107
106− if (notification.actions.count > 1) { // perform the "reject" action
107− notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
108− }
108+ // perform the "reject" action
109+ notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
110+
109111 notification.notification.close();
112+ notification.dismissed()
110113 }
111114
112115 Behavior on x {
@@ -119,6 +122,12 @@ StyledItem {
119122 }
120123 }
121124
125+ onFullscreenChanged: {
126+ if (fullscreen) {
127+ notification.notification.urgency = Notification.Critical;
128+ }
129+ }
130+
122131 Behavior on height {
123132 UbuntuNumberAnimation {
124133 duration: UbuntuAnimation.SnapDuration
@@ -192,6 +201,7 @@ StyledItem {
192201 onNameOwnerChanged: {
193202 if (lastNameOwner !== "" && nameOwner === "" && notification.notification !== undefined) {
194203 notification.notification.close()
204+ notification.dismissed()
195205 }
196206 lastNameOwner = nameOwner
197207 }
@@ -203,7 +213,7 @@ StyledItem {
203213 anchors.fill: parent
204214 objectName: "interactiveArea"
205215
206− drag.target: notification
216+ drag.target: !fullscreen ? notification : undefined
207217 drag.axis: Drag.XAxis
208218 drag.minimumX: -notification.width
209219 drag.maximumX: notification.width
@@ -386,7 +396,7 @@ StyledItem {
386396 objectName: "dialogListView"
387397 spacing: notification.margins
388398
389− visible: count > 0 && notification.expanded
399+ visible: count > 0 && (notification.expanded || notification.fullscreen)
390400
391401 anchors {
392402 left: parent.left
@@ -417,6 +427,7 @@ StyledItem {
417427 }
418428 onAccepted: {
419429 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
430+ notification.dismissed()
420431 }
421432 }
422433 }