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