Skip tst_QWindow::spuriousMouseMove on Wayland

As setting cursor position is not allowed on Wayland.

Task-number: QTBUG-66824
Change-Id: I1f065b7072dff13b1ee8a4fc3ccec347e8d71ed1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
bb10
Johan Klokkhammer Helsing 2018-04-03 09:48:48 +02:00 committed by Johan Helsing
parent 3ea2955a45
commit 40a15ecaad
1 changed files with 2 additions and 0 deletions

View File

@ -2224,6 +2224,8 @@ void tst_QWindow::spuriousMouseMove()
const QString &platformName = QGuiApplication::platformName();
if (platformName == QLatin1String("offscreen") || platformName == QLatin1String("cocoa"))
QSKIP("No enter events sent");
if (isPlatformWayland())
QSKIP("QCursor::setPos() is not supported on Wayland");
const QRect screenGeometry = QGuiApplication::primaryScreen()->geometry();
const QPoint center = screenGeometry.center();
QCursor::setPos(center);