Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/desktop_window_x11_test.cpp
Show All 20 Lines | |||||
21 | #include "platform.h" | 21 | #include "platform.h" | ||
22 | #include "client.h" | 22 | #include "client.h" | ||
23 | #include "cursor.h" | 23 | #include "cursor.h" | ||
24 | #include "deleted.h" | 24 | #include "deleted.h" | ||
25 | #include "screenedge.h" | 25 | #include "screenedge.h" | ||
26 | #include "screens.h" | 26 | #include "screens.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | #include "shell_client.h" | 29 | #include "xdgshellclient.h" | ||
30 | #include "xcbutils.h" | 30 | #include "xcbutils.h" | ||
31 | #include <kwineffects.h> | 31 | #include <kwineffects.h> | ||
32 | 32 | | |||
33 | #include <netwm.h> | 33 | #include <netwm.h> | ||
34 | #include <xcb/xcb_icccm.h> | 34 | #include <xcb/xcb_icccm.h> | ||
35 | 35 | | |||
36 | namespace KWin | 36 | namespace KWin | ||
37 | { | 37 | { | ||
Show All 9 Lines | 44 | private Q_SLOTS: | |||
47 | void cleanup(); | 47 | void cleanup(); | ||
48 | void testDesktopWindow(); | 48 | void testDesktopWindow(); | ||
49 | 49 | | |||
50 | private: | 50 | private: | ||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | void X11DesktopWindowTest::initTestCase() | 53 | void X11DesktopWindowTest::initTestCase() | ||
54 | { | 54 | { | ||
55 | qRegisterMetaType<KWin::ShellClient*>(); | 55 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
56 | qRegisterMetaType<KWin::AbstractClient*>(); | 56 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
57 | qRegisterMetaType<KWin::Deleted*>(); | 57 | qRegisterMetaType<KWin::Deleted*>(); | ||
58 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 58 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
59 | QVERIFY(workspaceCreatedSpy.isValid()); | 59 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
60 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 60 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
61 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 61 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
62 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 62 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
63 | 63 | | |||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |