Skip to content

Commit

Permalink
tests: skip tst_QScreen::grabWindow() on XWayland
Browse files Browse the repository at this point in the history
Pick-to: 6.5
Task-number: QTBUG-104595
Change-Id: Icb56a587dfbad84533616160817a3d43411146f1
Reviewed-by: Kalle Viironen <[email protected]>
Reviewed-by: Simo Fält <[email protected]>
  • Loading branch information
liangqi committed Mar 2, 2023
1 parent 2adb22f commit cd0301a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/auto/gui/kernel/qscreen/tst_qscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,9 @@ void tst_QScreen::orientationChange()

void tst_QScreen::grabWindow_data()
{
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(
QPlatformIntegration::ScreenWindowGrabbing)) {
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ScreenWindowGrabbing)
|| (QGuiApplication::platformName().toLower() == QStringLiteral("xcb") && !qEnvironmentVariableIsEmpty("WAYLAND_DISPLAY")))
QSKIP("This platform does not support grabbing windows on screen.");
}
QTest::addColumn<int>("screenIndex");
QTest::addColumn<QByteArray>("screenName");
QTest::addColumn<bool>("grabWindow");
Expand Down

0 comments on commit cd0301a

Please sign in to comment.