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 "client.h" | 21 | #include "client.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 "shell_client.h" | 27 | #include "xdgshellclient.h" | ||
28 | #include "useractions.h" | 28 | #include "useractions.h" | ||
29 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
30 | #include "workspace.h" | 30 | #include "workspace.h" | ||
31 | 31 | | |||
32 | #include <KWayland/Client/surface.h> | 32 | #include <KWayland/Client/surface.h> | ||
33 | #include <KWayland/Server/seat_interface.h> | 33 | #include <KWayland/Server/seat_interface.h> | ||
34 | 34 | | |||
35 | #include <KGlobalAccel> | 35 | #include <KGlobalAccel> | ||
Show All 24 Lines | 49 | private Q_SLOTS: | |||
60 | void testWaylandClientShortcut(); | 60 | void testWaylandClientShortcut(); | ||
61 | void testSetupWindowShortcut(); | 61 | void testSetupWindowShortcut(); | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | void GlobalShortcutsTest::initTestCase() | 64 | void GlobalShortcutsTest::initTestCase() | ||
65 | { | 65 | { | ||
66 | qRegisterMetaType<KWin::AbstractClient *>(); | 66 | qRegisterMetaType<KWin::AbstractClient *>(); | ||
67 | qRegisterMetaType<KWin::InternalClient *>(); | 67 | qRegisterMetaType<KWin::InternalClient *>(); | ||
68 | qRegisterMetaType<KWin::ShellClient *>(); | 68 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
69 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 69 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
70 | QVERIFY(workspaceCreatedSpy.isValid()); | 70 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
71 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 71 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
72 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 72 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
73 | 73 | | |||
74 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 74 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
75 | qputenv("KWIN_XKB_DEFAULT_KEYMAP", "1"); | 75 | qputenv("KWIN_XKB_DEFAULT_KEYMAP", "1"); | ||
76 | qputenv("XKB_DEFAULT_RULES", "evdev"); | 76 | qputenv("XKB_DEFAULT_RULES", "evdev"); | ||
▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines |