diff --git a/panels/notification/bubble/package/NormalBubble.qml b/panels/notification/bubble/package/NormalBubble.qml index a8d25a683..99a6da48e 100644 --- a/panels/notification/bubble/package/NormalBubble.qml +++ b/panels/notification/bubble/package/NormalBubble.qml @@ -34,6 +34,7 @@ NotifyItemContent { MouseArea { anchors.fill: parent hoverEnabled: true + z: -1 // default action onClicked: { if (!bubble.defaultAction) return diff --git a/panels/notification/center/notifyitem.cpp b/panels/notification/center/notifyitem.cpp index 32930c4b9..cdb3cb7b8 100644 --- a/panels/notification/center/notifyitem.cpp +++ b/panels/notification/center/notifyitem.cpp @@ -120,6 +120,7 @@ void AppNotifyItem::updateActions() const auto index = actions.indexOf(QLatin1String("default")); if (index >= 0) { // default Action maybe have text. + m_defaultAction = QLatin1String("default"); if (actions.size() % 2 == 1) { actions.remove(index); } else {