Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/scene_qpainter_shadow_test.cpp
Show All 36 Lines | |||||
37 | #include <KWayland/Client/shadow.h> | 37 | #include <KWayland/Client/shadow.h> | ||
38 | #include <KWayland/Client/shm_pool.h> | 38 | #include <KWayland/Client/shm_pool.h> | ||
39 | #include <KWayland/Client/surface.h> | 39 | #include <KWayland/Client/surface.h> | ||
40 | #include <KWayland/Server/shadow_interface.h> | 40 | #include <KWayland/Server/shadow_interface.h> | ||
41 | #include <KWayland/Server/surface_interface.h> | 41 | #include <KWayland/Server/surface_interface.h> | ||
42 | 42 | | |||
43 | #include "kwin_wayland_test.h" | 43 | #include "kwin_wayland_test.h" | ||
44 | 44 | | |||
45 | #include "abstract_client.h" | ||||
45 | #include "composite.h" | 46 | #include "composite.h" | ||
46 | #include "effect_builtins.h" | 47 | #include "effect_builtins.h" | ||
47 | #include "effectloader.h" | 48 | #include "effectloader.h" | ||
48 | #include "effects.h" | 49 | #include "effects.h" | ||
49 | #include "platform.h" | 50 | #include "platform.h" | ||
50 | #include "plugins/scenes/qpainter/scene_qpainter.h" | 51 | #include "plugins/scenes/qpainter/scene_qpainter.h" | ||
51 | #include "shadow.h" | 52 | #include "shadow.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::XdgShellClient *>(); | | |||
120 | qRegisterMetaType<KWin::AbstractClient*>(); | 119 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
121 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 120 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
122 | QVERIFY(workspaceCreatedSpy.isValid()); | 121 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
123 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 122 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
124 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 123 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
125 | 124 | | |||
126 | // disable all effects - we don't want to have it interact with the rendering | 125 | // disable all effects - we don't want to have it interact with the rendering | ||
127 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 126 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 654 Lines • Show Last 20 Lines |