summaryrefslogtreecommitdiffstats
path: root/tests/auto/qshortcut
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-03-24 10:27:11 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-03-24 15:04:38 (GMT)
commitcb530c3336964914fcec26c6ea001122104353ba (patch)
tree163d882e476e54699f0d35b3faeb9c118d004184 /tests/auto/qshortcut
parent661bcc601502125ca29930394daf90682f454612 (diff)
downloadQt-cb530c3336964914fcec26c6ea001122104353ba.zip
Qt-cb530c3336964914fcec26c6ea001122104353ba.tar.gz
Qt-cb530c3336964914fcec26c6ea001122104353ba.tar.bz2
Do not use _NET_ACTIVE_WINDOW for nonmanaged windows.
If a window has X11BypassWindowManager hint, we shouldn't bother asking the windowmanager to active it using the _NET_ACTIVE_WINDOW protocol and just go though Xorg directly. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'tests/auto/qshortcut')
-rw-r--r--tests/auto/qshortcut/tst_qshortcut.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qshortcut/tst_qshortcut.cpp b/tests/auto/qshortcut/tst_qshortcut.cpp
index 39518c5..6df4cc4 100644
--- a/tests/auto/qshortcut/tst_qshortcut.cpp
+++ b/tests/auto/qshortcut/tst_qshortcut.cpp
@@ -224,10 +224,10 @@ void tst_QShortcut::initTestCase()
mainW->setFixedSize( 100, 100 );
mainW->setCentralWidget( edit );
mainW->show();
- mainW->activateWindow();
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(mainW);
#endif
+ mainW->activateWindow();
QTest::qWait(100);
connect( mainW->statusBar(), SIGNAL(messageChanged(const QString&)),
this, SLOT(statusMessage(const QString&)) );