Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/wobbly_shade_test.cpp
Show All 19 Lines | |||||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "x11client.h" | 21 | #include "x11client.h" | ||
22 | #include "composite.h" | 22 | #include "composite.h" | ||
23 | #include "cursor.h" | 23 | #include "cursor.h" | ||
24 | #include "effects.h" | 24 | #include "effects.h" | ||
25 | #include "effectloader.h" | 25 | #include "effectloader.h" | ||
26 | #include "cursor.h" | 26 | #include "cursor.h" | ||
27 | #include "platform.h" | 27 | #include "platform.h" | ||
28 | #include "xdgshellclient.h" | | |||
29 | #include "wayland_server.h" | 28 | #include "wayland_server.h" | ||
30 | #include "workspace.h" | 29 | #include "workspace.h" | ||
31 | #include "effect_builtins.h" | 30 | #include "effect_builtins.h" | ||
32 | 31 | | |||
33 | #include <KConfigGroup> | 32 | #include <KConfigGroup> | ||
34 | 33 | | |||
35 | #include <KWayland/Client/connection_thread.h> | 34 | #include <KWayland/Client/connection_thread.h> | ||
36 | #include <KWayland/Client/registry.h> | 35 | #include <KWayland/Client/registry.h> | ||
Show All 14 Lines | 48 | private Q_SLOTS: | |||
51 | void init(); | 50 | void init(); | ||
52 | void cleanup(); | 51 | void cleanup(); | ||
53 | 52 | | |||
54 | void testShadeMove(); | 53 | void testShadeMove(); | ||
55 | }; | 54 | }; | ||
56 | 55 | | |||
57 | void WobblyWindowsShadeTest::initTestCase() | 56 | void WobblyWindowsShadeTest::initTestCase() | ||
58 | { | 57 | { | ||
59 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
60 | qRegisterMetaType<KWin::AbstractClient*>(); | 58 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
61 | qRegisterMetaType<KWin::Effect*>(); | 59 | qRegisterMetaType<KWin::Effect*>(); | ||
62 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 60 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
63 | QVERIFY(workspaceCreatedSpy.isValid()); | 61 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
64 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 62 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 63 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
66 | 64 | | |||
67 | // disable all effects - we don't want to have it interact with the rendering | 65 | // disable all effects - we don't want to have it interact with the rendering | ||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |