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 "x11client.h" | 21 | #include "x11client.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 "xdgshellclient.h" | | |||
28 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
29 | #include "workspace.h" | 28 | #include "workspace.h" | ||
30 | #include "effect_builtins.h" | 29 | #include "effect_builtins.h" | ||
31 | 30 | | |||
32 | #include <KConfigGroup> | 31 | #include <KConfigGroup> | ||
33 | 32 | | |||
34 | #include <netwm.h> | 33 | #include <netwm.h> | ||
35 | #include <xcb/xcb_icccm.h> | 34 | #include <xcb/xcb_icccm.h> | ||
Show All 14 Lines | |||||
50 | 49 | | |||
51 | private: | 50 | private: | ||
52 | Effect *m_translucencyEffect = nullptr; | 51 | Effect *m_translucencyEffect = nullptr; | ||
53 | }; | 52 | }; | ||
54 | 53 | | |||
55 | void TranslucencyTest::initTestCase() | 54 | void TranslucencyTest::initTestCase() | ||
56 | { | 55 | { | ||
57 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | 56 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | ||
58 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
59 | qRegisterMetaType<KWin::AbstractClient*>(); | 57 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
60 | qRegisterMetaType<KWin::Effect*>(); | 58 | qRegisterMetaType<KWin::Effect*>(); | ||
61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 59 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
62 | QVERIFY(workspaceCreatedSpy.isValid()); | 60 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 61 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
64 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 62 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
65 | 63 | | |||
66 | // disable all effects - we don't want to have it interact with the rendering | 64 | // 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 |