diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-19 20:54:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-19 20:54:15 -0600 |
commit | 921c21fd2529f516c76aaa23aa162e28e3f4baa7 (patch) | |
tree | 2d66dbfb3649a41e90c71a418bd154ecfda2d7e8 | |
parent | f7f497fd05150ee34a84e2eb91c8f509ee01ec93 (diff) | |
download | tdelibs-921c21fd2529f516c76aaa23aa162e28e3f4baa7.tar.gz tdelibs-921c21fd2529f516c76aaa23aa162e28e3f4baa7.zip |
Fix passive popups sometimes appearing in the wrong location
-rw-r--r-- | tdecore/knotifyclient.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tdecore/knotifyclient.cpp b/tdecore/knotifyclient.cpp index e07522fca..bfde017af 100644 --- a/tdecore/knotifyclient.cpp +++ b/tdecore/knotifyclient.cpp @@ -31,6 +31,14 @@ #include <kdebug.h> #include <kstaticdeleter.h> +#ifdef Q_WS_X11 +#include <X11/X.h> +#include <X11/Xlib.h> +#include <X11/XKBlib.h> +#include <X11/keysym.h> +#include <fixx11h.h> +#endif + static const char daemonName[] = "knotify"; static bool canAvoidStartupEvent( const TQString& event, const TQString& appname, int present ) @@ -68,6 +76,11 @@ static int sendNotifyEvent(const TQString &message, const TQString &text, { if (!kapp) return 0; + // ensure tray icon is shown and positioned before sending event to notification daemon +#ifdef Q_WS_X11 + XFlush(tqt_xdisplay()); +#endif + DCOPClient *client=kapp->dcopClient(); if (!client->isAttached()) { |