mirror of https://github.com/qt/qtbase.git
Skip tst_qwindow test when running on Wayland
The tst_qwindow test failed with a warning that programmatically moving the mouse cursor is not possible with Wayland. Task-number: QTBUG-91418 Change-Id: I02ceb2af43fbc83a4e6ae09718315f5f79ff8285 Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
5552d3d446
commit
2bf9061760
|
@ -2385,6 +2385,8 @@ void tst_QWindow::spuriousMouseMove()
|
|||
const QString &platformName = QGuiApplication::platformName();
|
||||
if (platformName == QLatin1String("offscreen") || platformName == QLatin1String("cocoa"))
|
||||
QSKIP("No enter events sent");
|
||||
if (platformName == QLatin1String("wayland"))
|
||||
QSKIP("Setting mouse cursor position is not possible on Wayland");
|
||||
const QRect screenGeometry = QGuiApplication::primaryScreen()->geometry();
|
||||
const QPoint center = screenGeometry.center();
|
||||
QCursor::setPos(center);
|
||||
|
|
Loading…
Reference in New Issue