Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/globalshortcuts_test.cpp
Show All 18 Lines | |||||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "x11client.h" | 21 | #include "x11client.h" | ||
22 | #include "cursor.h" | 22 | #include "cursor.h" | ||
23 | #include "input.h" | 23 | #include "input.h" | ||
24 | #include "internal_client.h" | 24 | #include "internal_client.h" | ||
25 | #include "platform.h" | 25 | #include "platform.h" | ||
26 | #include "screens.h" | 26 | #include "screens.h" | ||
27 | #include "xdgshellclient.h" | | |||
28 | #include "useractions.h" | 27 | #include "useractions.h" | ||
29 | #include "wayland_server.h" | 28 | #include "wayland_server.h" | ||
30 | #include "workspace.h" | 29 | #include "workspace.h" | ||
31 | 30 | | |||
32 | #include <KWayland/Client/surface.h> | 31 | #include <KWayland/Client/surface.h> | ||
33 | #include <KWayland/Server/seat_interface.h> | 32 | #include <KWayland/Server/seat_interface.h> | ||
34 | 33 | | |||
35 | #include <KGlobalAccel> | 34 | #include <KGlobalAccel> | ||
Show All 24 Lines | 48 | private Q_SLOTS: | |||
60 | void testWaylandClientShortcut(); | 59 | void testWaylandClientShortcut(); | ||
61 | void testSetupWindowShortcut(); | 60 | void testSetupWindowShortcut(); | ||
62 | }; | 61 | }; | ||
63 | 62 | | |||
64 | void GlobalShortcutsTest::initTestCase() | 63 | void GlobalShortcutsTest::initTestCase() | ||
65 | { | 64 | { | ||
66 | qRegisterMetaType<KWin::AbstractClient *>(); | 65 | qRegisterMetaType<KWin::AbstractClient *>(); | ||
67 | qRegisterMetaType<KWin::InternalClient *>(); | 66 | qRegisterMetaType<KWin::InternalClient *>(); | ||
68 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
69 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 67 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
70 | QVERIFY(workspaceCreatedSpy.isValid()); | 68 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
71 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 69 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
72 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 70 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
73 | 71 | | |||
74 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 72 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
75 | qputenv("KWIN_XKB_DEFAULT_KEYMAP", "1"); | 73 | qputenv("KWIN_XKB_DEFAULT_KEYMAP", "1"); | ||
76 | qputenv("XKB_DEFAULT_RULES", "evdev"); | 74 | qputenv("XKB_DEFAULT_RULES", "evdev"); | ||
▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines |