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