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
parent
3ea2955a45
commit
40a15ecaad
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue