summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-13 06:10:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-13 06:10:48 +0200
commitcdce0cbc574f7d44b823d9974f7438cfaccf04ac (patch)
treee8aa5418756b8074acd70b7dbeefd7da12adb4c8
parent53d643f41e7f738a0ba8fd5b0cfb344747819bae (diff)
Hopefully display tray icon properly on X11 now
-rw-r--r--facetracknoir/facetracknoir.cpp3
1 files changed, 2 insertions, 1 deletions
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