Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/scene_qpainter_shadow_test.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | 44 | | |||
45 | #include "composite.h" | 45 | #include "composite.h" | ||
46 | #include "effect_builtins.h" | 46 | #include "effect_builtins.h" | ||
47 | #include "effectloader.h" | 47 | #include "effectloader.h" | ||
48 | #include "effects.h" | 48 | #include "effects.h" | ||
49 | #include "platform.h" | 49 | #include "platform.h" | ||
50 | #include "plugins/scenes/qpainter/scene_qpainter.h" | 50 | #include "plugins/scenes/qpainter/scene_qpainter.h" | ||
51 | #include "shadow.h" | 51 | #include "shadow.h" | ||
52 | #include "shell_client.h" | 52 | #include "xdgshellclient.h" | ||
53 | #include "wayland_server.h" | 53 | #include "wayland_server.h" | ||
54 | #include "workspace.h" | 54 | #include "workspace.h" | ||
55 | 55 | | |||
56 | Q_DECLARE_METATYPE(KWin::WindowQuadList) | 56 | Q_DECLARE_METATYPE(KWin::WindowQuadList) | ||
57 | 57 | | |||
58 | using namespace KWin; | 58 | using namespace KWin; | ||
59 | using namespace KWayland::Client; | 59 | using namespace KWayland::Client; | ||
60 | 60 | | |||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 106 | { | |||
111 | quad[3] = WindowVertex(geo.left(), geo.bottom(), tx1, ty2); | 111 | quad[3] = WindowVertex(geo.left(), geo.bottom(), tx1, ty2); | ||
112 | return quad; | 112 | return quad; | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | void SceneQPainterShadowTest::initTestCase() | 115 | void SceneQPainterShadowTest::initTestCase() | ||
116 | { | 116 | { | ||
117 | // Copied from scene_qpainter_test.cpp | 117 | // Copied from scene_qpainter_test.cpp | ||
118 | 118 | | |||
119 | qRegisterMetaType<KWin::ShellClient*>(); | 119 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
120 | qRegisterMetaType<KWin::AbstractClient*>(); | 120 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
121 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 121 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
122 | QVERIFY(workspaceCreatedSpy.isValid()); | 122 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
123 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 123 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
124 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 124 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
125 | 125 | | |||
126 | // disable all effects - we don't want to have it interact with the rendering | 126 | // disable all effects - we don't want to have it interact with the rendering | ||
127 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 127 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 654 Lines • Show Last 20 Lines |