diff --git a/libukui-notification/notification-settings/notification-global-settings.cpp b/libukui-notification/notification-settings/notification-global-settings.cpp index e6614a4..ca97466 100644 --- a/libukui-notification/notification-settings/notification-global-settings.cpp +++ b/libukui-notification/notification-settings/notification-global-settings.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "settings-manager.h" #include "settings-properties.h" @@ -193,7 +194,14 @@ bool NotificationGlobalSettings::isDND() { } if(!dnd) { if(DNDWhileFullScreen()) { - //todo + QDBusMessage msg = QDBusMessage::createMethodCall(QStringLiteral("org.kde.KWin"), + QStringLiteral("/KWin"), + QStringLiteral("org.kde.KWin"), + QStringLiteral("haveFullScreenActiveWindow")); + QDBusReply reply = QDBusConnection::sessionBus().call(msg); + if(reply.isValid()) { + dnd = reply.value(); + } } } return dnd;