From cdce0cbc574f7d44b823d9974f7438cfaccf04ac Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Apr 2013 06:10:48 +0200 Subject: Hopefully display tray icon properly on X11 now --- facetracknoir/facetracknoir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'facetracknoir') diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp index d5d24db1..0aea755c 100644 --- a/facetracknoir/facetracknoir.cpp +++ b/facetracknoir/facetracknoir.cpp @@ -1286,7 +1286,8 @@ void FaceTrackNoIR::protocolSelected(int index) trayIcon->setIcon(icon); trayIcon->setToolTip(ui.iconcomboProtocol->itemText(index)); trayIcon->show(); - trayIcon->showMessage( "FaceTrackNoIR", ui.iconcomboProtocol->itemText(index)); + QApplication::sendPostedEvents(trayIcon, QEventLoop::AllEvents); + trayIcon->showMessage( "FaceTrackNoIR", ui.iconcomboProtocol->itemText(index)); } //setWindowIcon(QIcon(":/images/FaceTrackNoIR.png")); //breaks with transparency -sh -- cgit v1.2.3