Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/xwayland_input_test.cpp
Show All 20 Lines | |||||
21 | #include "platform.h" | 21 | #include "platform.h" | ||
22 | #include "x11client.h" | 22 | #include "x11client.h" | ||
23 | #include "cursor.h" | 23 | #include "cursor.h" | ||
24 | #include "deleted.h" | 24 | #include "deleted.h" | ||
25 | #include "screenedge.h" | 25 | #include "screenedge.h" | ||
26 | #include "screens.h" | 26 | #include "screens.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | #include "xdgshellclient.h" | | |||
30 | 29 | | |||
31 | #include <KWayland/Server/seat_interface.h> | 30 | #include <KWayland/Server/seat_interface.h> | ||
32 | 31 | | |||
33 | #include <QSocketNotifier> | 32 | #include <QSocketNotifier> | ||
34 | 33 | | |||
35 | #include <netwm.h> | 34 | #include <netwm.h> | ||
36 | #include <xcb/xcb_icccm.h> | 35 | #include <xcb/xcb_icccm.h> | ||
37 | 36 | | |||
Show All 9 Lines | 45 | private Q_SLOTS: | |||
47 | void initTestCase(); | 46 | void initTestCase(); | ||
48 | void init(); | 47 | void init(); | ||
49 | void testPointerEnterLeaveSsd(); | 48 | void testPointerEnterLeaveSsd(); | ||
50 | void testPointerEventLeaveCsd(); | 49 | void testPointerEventLeaveCsd(); | ||
51 | }; | 50 | }; | ||
52 | 51 | | |||
53 | void XWaylandInputTest::initTestCase() | 52 | void XWaylandInputTest::initTestCase() | ||
54 | { | 53 | { | ||
55 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
56 | qRegisterMetaType<KWin::AbstractClient*>(); | 54 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
57 | qRegisterMetaType<KWin::Deleted*>(); | 55 | qRegisterMetaType<KWin::Deleted*>(); | ||
58 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 56 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
59 | QVERIFY(workspaceCreatedSpy.isValid()); | 57 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
60 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 58 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
61 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 59 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
62 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 60 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
63 | 61 | | |||
▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines |