Don't try to workaround QSystemTray's not being able to close its bubble on Mac
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 15 Nov 2008 21:31:51 +0000 (22:31 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 15 Nov 2008 21:34:07 +0000 (22:34 +0100)
Displaying an empty bubble with 1ms timeout to force the bubble to close on re-activation
does not work on Mac either. Please let me know if there are problems with that on X11 as well.

Fixes BR #290.

src/qtui/systraynotificationbackend.cpp

index 35dd2dd..219a981 100644 (file)
@@ -86,9 +86,8 @@ void SystrayNotificationBackend::showBubble() {
 }
 
 void SystrayNotificationBackend::closeBubble() {
 }
 
 void SystrayNotificationBackend::closeBubble() {
-  // there really seems to be no decent way to close the bubble...
-  // in addition, windows ignores the timeout -_-
-#ifndef Q_WS_WIN
+  // there really seems to be no sane way to close the bubble... :(
+#ifdef Q_WS_X11
   QtUi::mainWindow()->systemTrayIcon()->showMessage("", "", QSystemTrayIcon::NoIcon, 1);
 #endif
 }
   QtUi::mainWindow()->systemTrayIcon()->showMessage("", "", QSystemTrayIcon::NoIcon, 1);
 #endif
 }