Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/window_selection_test.cpp
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
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 "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "abstract_client.h" | ||||
21 | #include "cursor.h" | 22 | #include "cursor.h" | ||
22 | #include "keyboard_input.h" | 23 | #include "keyboard_input.h" | ||
23 | #include "platform.h" | 24 | #include "platform.h" | ||
24 | #include "pointer_input.h" | 25 | #include "pointer_input.h" | ||
25 | #include "xdgshellclient.h" | | |||
26 | #include "screens.h" | 26 | #include "screens.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | 29 | | |||
30 | #include <KWayland/Client/compositor.h> | 30 | #include <KWayland/Client/compositor.h> | ||
31 | #include <KWayland/Client/keyboard.h> | 31 | #include <KWayland/Client/keyboard.h> | ||
32 | #include <KWayland/Client/pointer.h> | 32 | #include <KWayland/Client/pointer.h> | ||
33 | #include <KWayland/Client/seat.h> | 33 | #include <KWayland/Client/seat.h> | ||
Show All 24 Lines | 48 | private Q_SLOTS: | |||
58 | void testCancelOnWindowKeyboard(); | 58 | void testCancelOnWindowKeyboard(); | ||
59 | 59 | | |||
60 | void testSelectPointPointer(); | 60 | void testSelectPointPointer(); | ||
61 | void testSelectPointTouch(); | 61 | void testSelectPointTouch(); | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | void TestWindowSelection::initTestCase() | 64 | void TestWindowSelection::initTestCase() | ||
65 | { | 65 | { | ||
66 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
67 | qRegisterMetaType<KWin::AbstractClient*>(); | 66 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
68 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 67 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
69 | QVERIFY(workspaceCreatedSpy.isValid()); | 68 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
70 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 69 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
71 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 70 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
72 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 71 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
73 | qputenv("XKB_DEFAULT_RULES", "evdev"); | 72 | qputenv("XKB_DEFAULT_RULES", "evdev"); | ||
74 | 73 | | |||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |