Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/input_stacking_order.cpp
Show All 20 Lines | |||||
21 | #include "platform.h" | 21 | #include "platform.h" | ||
22 | #include "abstract_client.h" | 22 | #include "abstract_client.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 | #include <kwineffects.h> | 29 | #include <kwineffects.h> | ||
31 | 30 | | |||
32 | #include <KWayland/Client/connection_thread.h> | 31 | #include <KWayland/Client/connection_thread.h> | ||
33 | #include <KWayland/Client/compositor.h> | 32 | #include <KWayland/Client/compositor.h> | ||
34 | #include <KWayland/Client/event_queue.h> | 33 | #include <KWayland/Client/event_queue.h> | ||
35 | #include <KWayland/Client/registry.h> | 34 | #include <KWayland/Client/registry.h> | ||
36 | #include <KWayland/Client/pointer.h> | 35 | #include <KWayland/Client/pointer.h> | ||
37 | #include <KWayland/Client/seat.h> | 36 | #include <KWayland/Client/seat.h> | ||
Show All 18 Lines | 50 | private Q_SLOTS: | |||
56 | void testPointerFocusUpdatesOnStackingOrderChange(); | 55 | void testPointerFocusUpdatesOnStackingOrderChange(); | ||
57 | 56 | | |||
58 | private: | 57 | private: | ||
59 | void render(KWayland::Client::Surface *surface); | 58 | void render(KWayland::Client::Surface *surface); | ||
60 | }; | 59 | }; | ||
61 | 60 | | |||
62 | void InputStackingOrderTest::initTestCase() | 61 | void InputStackingOrderTest::initTestCase() | ||
63 | { | 62 | { | ||
64 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
65 | qRegisterMetaType<KWin::AbstractClient*>(); | 63 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
66 | qRegisterMetaType<KWin::Deleted*>(); | 64 | qRegisterMetaType<KWin::Deleted*>(); | ||
67 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 65 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
68 | QVERIFY(workspaceCreatedSpy.isValid()); | 66 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
69 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 67 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
70 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 68 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
71 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 69 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
72 | 70 | | |||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |