Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_empty_deco.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 51 | { | |||
---|---|---|---|---|---|
69 | auto scene = KWin::Compositor::self()->scene(); | 69 | auto scene = KWin::Compositor::self()->scene(); | ||
70 | QVERIFY(scene); | 70 | QVERIFY(scene); | ||
71 | QCOMPARE(scene->compositingType(), KWin::OpenGL2Compositing); | 71 | QCOMPARE(scene->compositingType(), KWin::OpenGL2Compositing); | ||
72 | } | 72 | } | ||
73 | 73 | | |||
74 | void DontCrashEmptyDecorationTest::init() | 74 | void DontCrashEmptyDecorationTest::init() | ||
75 | { | 75 | { | ||
76 | screens()->setCurrent(0); | 76 | screens()->setCurrent(0); | ||
77 | Cursor::setPos(QPoint(640, 512)); | 77 | Cursors::self()->mouse()->setPos(QPoint(640, 512)); | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | void DontCrashEmptyDecorationTest::testBug361551() | 80 | void DontCrashEmptyDecorationTest::testBug361551() | ||
81 | { | 81 | { | ||
82 | // this test verifies that resizing an X11 window to an invalid size does not result in crash on unmap | 82 | // this test verifies that resizing an X11 window to an invalid size does not result in crash on unmap | ||
83 | // when the DecorationRenderer gets copied to the Deleted | 83 | // when the DecorationRenderer gets copied to the Deleted | ||
84 | // there a repaint is scheduled and the resulting texture is invalid if the window size is invalid | 84 | // there a repaint is scheduled and the resulting texture is invalid if the window size is invalid | ||
85 | 85 | | |||
Show All 37 Lines |