Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/placement.cpp
Show All 15 Lines | |||||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "cursor.h" | 20 | #include "cursor.h" | ||
21 | #include "kwin_wayland_test.h" | 21 | #include "kwin_wayland_test.h" | ||
22 | #include "platform.h" | 22 | #include "platform.h" | ||
23 | #include "screens.h" | 23 | #include "screens.h" | ||
24 | #include "shell_client.h" | 24 | #include "xdgshellclient.h" | ||
25 | #include "wayland_server.h" | 25 | #include "wayland_server.h" | ||
26 | #include "workspace.h" | 26 | #include "workspace.h" | ||
27 | 27 | | |||
28 | #include <KWayland/Client/compositor.h> | 28 | #include <KWayland/Client/compositor.h> | ||
29 | #include <KWayland/Client/plasmashell.h> | 29 | #include <KWayland/Client/plasmashell.h> | ||
30 | #include <KWayland/Client/server_decoration.h> | 30 | #include <KWayland/Client/server_decoration.h> | ||
31 | #include <KWayland/Client/shm_pool.h> | 31 | #include <KWayland/Client/shm_pool.h> | ||
32 | #include <KWayland/Client/surface.h> | 32 | #include <KWayland/Client/surface.h> | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
78 | 78 | | |||
79 | void TestPlacement::cleanup() | 79 | void TestPlacement::cleanup() | ||
80 | { | 80 | { | ||
81 | Test::destroyWaylandConnection(); | 81 | Test::destroyWaylandConnection(); | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | void TestPlacement::initTestCase() | 84 | void TestPlacement::initTestCase() | ||
85 | { | 85 | { | ||
86 | qRegisterMetaType<KWin::ShellClient*>(); | 86 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
87 | qRegisterMetaType<KWin::AbstractClient*>(); | 87 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
88 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 88 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
89 | QVERIFY(workspaceCreatedSpy.isValid()); | 89 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
90 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 90 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
91 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 91 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
92 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 92 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
93 | 93 | | |||
94 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 94 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |