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