Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/x11_client_test.cpp
Show All 21 Lines | |||||
22 | #include "client.h" | 22 | #include "client.h" | ||
23 | #include "composite.h" | 23 | #include "composite.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 "deleted.h" | 27 | #include "deleted.h" | ||
28 | #include "platform.h" | 28 | #include "platform.h" | ||
29 | #include "screens.h" | 29 | #include "screens.h" | ||
30 | #include "shell_client.h" | 30 | #include "xdgshellclient.h" | ||
31 | #include "wayland_server.h" | 31 | #include "wayland_server.h" | ||
32 | #include "workspace.h" | 32 | #include "workspace.h" | ||
33 | 33 | | |||
34 | #include <KWayland/Client/surface.h> | 34 | #include <KWayland/Client/surface.h> | ||
35 | 35 | | |||
36 | #include <netwm.h> | 36 | #include <netwm.h> | ||
37 | #include <xcb/xcb_icccm.h> | 37 | #include <xcb/xcb_icccm.h> | ||
38 | 38 | | |||
Show All 18 Lines | 46 | private Q_SLOTS: | |||
57 | void testCaptionWmName(); | 57 | void testCaptionWmName(); | ||
58 | void testCaptionMultipleWindows(); | 58 | void testCaptionMultipleWindows(); | ||
59 | void testFullscreenWindowGroups(); | 59 | void testFullscreenWindowGroups(); | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | void X11ClientTest::initTestCase() | 62 | void X11ClientTest::initTestCase() | ||
63 | { | 63 | { | ||
64 | qRegisterMetaType<KWin::Deleted*>(); | 64 | qRegisterMetaType<KWin::Deleted*>(); | ||
65 | qRegisterMetaType<KWin::ShellClient*>(); | 65 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
66 | qRegisterMetaType<KWin::AbstractClient*>(); | 66 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
67 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 67 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
68 | QVERIFY(workspaceCreatedSpy.isValid()); | 68 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
69 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 69 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
70 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 70 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
71 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 71 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
72 | 72 | | |||
73 | kwinApp()->start(); | 73 | kwinApp()->start(); | ||
▲ Show 20 Lines • Show All 557 Lines • Show Last 20 Lines |