Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/window_rules_test.cpp
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
66 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 66 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
67 | setenv("QT_QPA_PLATFORM", "wayland", true); | 67 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
68 | waylandServer()->initWorkspace(); | 68 | waylandServer()->initWorkspace(); | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | void WindowRuleTest::init() | 71 | void WindowRuleTest::init() | ||
72 | { | 72 | { | ||
73 | screens()->setCurrent(0); | 73 | screens()->setCurrent(0); | ||
74 | Cursor::setPos(QPoint(640, 512)); | 74 | Cursors::self()->mouse()->setPos(QPoint(640, 512)); | ||
75 | QVERIFY(waylandServer()->clients().isEmpty()); | 75 | QVERIFY(waylandServer()->clients().isEmpty()); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | void WindowRuleTest::cleanup() | 78 | void WindowRuleTest::cleanup() | ||
79 | { | 79 | { | ||
80 | // discards old rules | 80 | // discards old rules | ||
81 | RuleBook::self()->load(); | 81 | RuleBook::self()->load(); | ||
82 | } | 82 | } | ||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |