From ca0cb95007f01018818a0d5f1cc95eb0fa6bb6e9 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 9 Jul 2011 18:18:09 -0400 Subject: [PATCH] Fix notifications for non-visible sessions. Currently all notifications are deemed 'visible'. This patch fixes that so all non-visible sessions go to their own notifications. Patch by Tijl Coosemans. I'll backport to the 4.7 branch. BUG: 174505 FIXED-IN: 2.7.1 REVIEW: 101720 --- src/TerminalDisplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp index 3c3420af..634cf7cb 100644 --- a/src/TerminalDisplay.cpp +++ b/src/TerminalDisplay.cpp @@ -2699,7 +2699,8 @@ void TerminalDisplay::bell(const QString& message) } else if (_bellMode==NotifyBell) { - KNotification::event("BellVisible", message,QPixmap(),this); + KNotification::event(hasFocus() ? "BellVisible" : "BellInvisible", + message,QPixmap(),this); } else if (_bellMode==VisualBell) {