Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/internal_window.cpp
Show All 17 Lines | |||||
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 "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "platform.h" | 21 | #include "platform.h" | ||
22 | #include "cursor.h" | 22 | #include "cursor.h" | ||
23 | #include "effects.h" | 23 | #include "effects.h" | ||
24 | #include "internal_client.h" | 24 | #include "internal_client.h" | ||
25 | #include "screens.h" | 25 | #include "screens.h" | ||
26 | #include "shell_client.h" | 26 | #include "xdgshellclient.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | 29 | | |||
30 | #include <QPainter> | 30 | #include <QPainter> | ||
31 | #include <QRasterWindow> | 31 | #include <QRasterWindow> | ||
32 | 32 | | |||
33 | #include <KWayland/Client/keyboard.h> | 33 | #include <KWayland/Client/keyboard.h> | ||
34 | #include <KWayland/Client/surface.h> | 34 | #include <KWayland/Client/surface.h> | ||
▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 179 | { | |||
180 | Q_UNUSED(event) | 180 | Q_UNUSED(event) | ||
181 | emit keyReleased(); | 181 | emit keyReleased(); | ||
182 | } | 182 | } | ||
183 | 183 | | |||
184 | void InternalWindowTest::initTestCase() | 184 | void InternalWindowTest::initTestCase() | ||
185 | { | 185 | { | ||
186 | qRegisterMetaType<KWin::AbstractClient *>(); | 186 | qRegisterMetaType<KWin::AbstractClient *>(); | ||
187 | qRegisterMetaType<KWin::InternalClient *>(); | 187 | qRegisterMetaType<KWin::InternalClient *>(); | ||
188 | qRegisterMetaType<KWin::ShellClient *>(); | 188 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
189 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 189 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
190 | QVERIFY(workspaceCreatedSpy.isValid()); | 190 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
191 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 191 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
192 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 192 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
193 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 193 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
194 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 194 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
195 | 195 | | |||
196 | kwinApp()->start(); | 196 | kwinApp()->start(); | ||
▲ Show 20 Lines • Show All 601 Lines • Show Last 20 Lines |