X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.cpp;h=219a9817cb5f509e17eccd219912fc426191f994;hb=7e5d08e8e20162b5cd13413693187be90f738a1e;hp=1c8b572554d38916cb1f6bd01e2fedf7ee1bb4a9;hpb=5c78a50fa720e5f82fcaa03c0176feab71d74c8e;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.cpp b/src/qtui/systraynotificationbackend.cpp index 1c8b5725..219a9817 100644 --- a/src/qtui/systraynotificationbackend.cpp +++ b/src/qtui/systraynotificationbackend.cpp @@ -58,7 +58,7 @@ void SystrayNotificationBackend::notify(const Notification ¬ification) { if(_showBubble) { showBubble(); } - if(_animate && _notifications.count() == 1) { + if(_animate) { startAnimation(); } } @@ -86,8 +86,10 @@ void SystrayNotificationBackend::showBubble() { } void SystrayNotificationBackend::closeBubble() { - // there really seems to be no decent way to close the bubble... + // there really seems to be no sane way to close the bubble... :( +#ifdef Q_WS_X11 QtUi::mainWindow()->systemTrayIcon()->showMessage("", "", QSystemTrayIcon::NoIcon, 1); +#endif } void SystrayNotificationBackend::showBubbleChanged(const QVariant &v) {