Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/translucency_test.cpp
Show All 18 Lines | |||||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "client.h" | 21 | #include "client.h" | ||
22 | #include "composite.h" | 22 | #include "composite.h" | ||
23 | #include "effects.h" | 23 | #include "effects.h" | ||
24 | #include "effectloader.h" | 24 | #include "effectloader.h" | ||
25 | #include "cursor.h" | 25 | #include "cursor.h" | ||
26 | #include "platform.h" | 26 | #include "platform.h" | ||
27 | #include "shell_client.h" | 27 | #include "xdgshellclient.h" | ||
28 | #include "wayland_server.h" | 28 | #include "wayland_server.h" | ||
29 | #include "workspace.h" | 29 | #include "workspace.h" | ||
30 | #include "effect_builtins.h" | 30 | #include "effect_builtins.h" | ||
31 | 31 | | |||
32 | #include <KConfigGroup> | 32 | #include <KConfigGroup> | ||
33 | 33 | | |||
34 | #include <netwm.h> | 34 | #include <netwm.h> | ||
35 | #include <xcb/xcb_icccm.h> | 35 | #include <xcb/xcb_icccm.h> | ||
Show All 14 Lines | |||||
50 | 50 | | |||
51 | private: | 51 | private: | ||
52 | Effect *m_translucencyEffect = nullptr; | 52 | Effect *m_translucencyEffect = nullptr; | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | void TranslucencyTest::initTestCase() | 55 | void TranslucencyTest::initTestCase() | ||
56 | { | 56 | { | ||
57 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | 57 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | ||
58 | qRegisterMetaType<KWin::ShellClient*>(); | 58 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
59 | qRegisterMetaType<KWin::AbstractClient*>(); | 59 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
60 | qRegisterMetaType<KWin::Effect*>(); | 60 | qRegisterMetaType<KWin::Effect*>(); | ||
61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
62 | QVERIFY(workspaceCreatedSpy.isValid()); | 62 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
64 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 64 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
65 | 65 | | |||
66 | // disable all effects - we don't want to have it interact with the rendering | 66 | // disable all effects - we don't want to have it interact with the rendering | ||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |