From 6848967a5071f48f2cd742b548dd97d8525733df Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 15 Nov 2008 22:31:51 +0100 Subject: [PATCH 1/1] Don't try to workaround QSystemTray's not being able to close its bubble on Mac 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/qtui/systraynotificationbackend.cpp b/src/qtui/systraynotificationbackend.cpp index 35dd2dd7..219a9817 100644 --- a/src/qtui/systraynotificationbackend.cpp +++ b/src/qtui/systraynotificationbackend.cpp @@ -86,9 +86,8 @@ void SystrayNotificationBackend::showBubble() { } 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 } -- 2.20.1