Autotests: Dont warp cursor before X is available kwin side
This commit is contained in:
parent
466f2fe8ba
commit
2ca4627207
1 changed files with 8 additions and 2 deletions
|
@ -58,8 +58,7 @@ void XWaylandInputTest::init()
|
||||||
{
|
{
|
||||||
workspace()->setActiveOutput(QPoint(640, 512));
|
workspace()->setActiveOutput(QPoint(640, 512));
|
||||||
Cursors::self()->mouse()->setPos(QPoint(640, 512));
|
Cursors::self()->mouse()->setPos(QPoint(640, 512));
|
||||||
xcb_warp_pointer(connection(), XCB_WINDOW_NONE, kwinApp()->x11RootWindow(), 0, 0, 0, 0, 640, 512);
|
|
||||||
xcb_flush(connection());
|
|
||||||
QVERIFY(waylandServer()->windows().isEmpty());
|
QVERIFY(waylandServer()->windows().isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,6 +119,10 @@ void XWaylandInputTest::testPointerEnterLeaveSsd()
|
||||||
if (xcb_get_setup(c.get())->release_number < 11800000) {
|
if (xcb_get_setup(c.get())->release_number < 11800000) {
|
||||||
QSKIP("XWayland 1.18 required");
|
QSKIP("XWayland 1.18 required");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xcb_warp_pointer(connection(), XCB_WINDOW_NONE, kwinApp()->x11RootWindow(), 0, 0, 0, 0, 640, 512);
|
||||||
|
xcb_flush(connection());
|
||||||
|
|
||||||
X11EventReaderHelper eventReader(c.get());
|
X11EventReaderHelper eventReader(c.get());
|
||||||
QSignalSpy enteredSpy(&eventReader, &X11EventReaderHelper::entered);
|
QSignalSpy enteredSpy(&eventReader, &X11EventReaderHelper::entered);
|
||||||
QSignalSpy leftSpy(&eventReader, &X11EventReaderHelper::left);
|
QSignalSpy leftSpy(&eventReader, &X11EventReaderHelper::left);
|
||||||
|
@ -187,6 +190,9 @@ void XWaylandInputTest::testPointerEventLeaveCsd()
|
||||||
Test::XcbConnectionPtr c = Test::createX11Connection();
|
Test::XcbConnectionPtr c = Test::createX11Connection();
|
||||||
QVERIFY(!xcb_connection_has_error(c.get()));
|
QVERIFY(!xcb_connection_has_error(c.get()));
|
||||||
|
|
||||||
|
xcb_warp_pointer(connection(), XCB_WINDOW_NONE, kwinApp()->x11RootWindow(), 0, 0, 0, 0, 640, 512);
|
||||||
|
xcb_flush(connection());
|
||||||
|
|
||||||
if (xcb_get_setup(c.get())->release_number < 11800000) {
|
if (xcb_get_setup(c.get())->release_number < 11800000) {
|
||||||
QSKIP("XWayland 1.18 required");
|
QSKIP("XWayland 1.18 required");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue