From 921c21fd2529f516c76aaa23aa162e28e3f4baa7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Nov 2012 20:54:15 -0600 Subject: Fix passive popups sometimes appearing in the wrong location --- tdecore/knotifyclient.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tdecore') 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 #include +#ifdef Q_WS_X11 +#include +#include +#include +#include +#include +#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()) { -- cgit v1.2.1