Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/input_stacking_order.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | |||||
63 | void InputStackingOrderTest::initTestCase() | 63 | void InputStackingOrderTest::initTestCase() | ||
64 | { | 64 | { | ||
65 | qRegisterMetaType<KWin::ShellClient*>(); | 65 | qRegisterMetaType<KWin::ShellClient*>(); | ||
66 | qRegisterMetaType<KWin::AbstractClient*>(); | 66 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
67 | qRegisterMetaType<KWin::Deleted*>(); | 67 | qRegisterMetaType<KWin::Deleted*>(); | ||
68 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 68 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
69 | QVERIFY(workspaceCreatedSpy.isValid()); | 69 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
70 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 70 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
71 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
72 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 71 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
72 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
73 | 73 | | |||
74 | kwinApp()->start(); | 74 | kwinApp()->start(); | ||
75 | QVERIFY(workspaceCreatedSpy.wait()); | 75 | QVERIFY(workspaceCreatedSpy.wait()); | ||
76 | QCOMPARE(screens()->count(), 2); | 76 | QCOMPARE(screens()->count(), 2); | ||
77 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 77 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
78 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 78 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
79 | setenv("QT_QPA_PLATFORM", "wayland", true); | 79 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
80 | waylandServer()->initWorkspace(); | 80 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |