Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/touch_input_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 "platform.h" | 22 | #include "platform.h" | ||
22 | #include "cursor.h" | 23 | #include "cursor.h" | ||
23 | #include "xdgshellclient.h" | | |||
24 | #include "screens.h" | 24 | #include "screens.h" | ||
25 | #include "wayland_server.h" | 25 | #include "wayland_server.h" | ||
26 | #include "workspace.h" | 26 | #include "workspace.h" | ||
27 | 27 | | |||
28 | #include <KWayland/Client/compositor.h> | 28 | #include <KWayland/Client/compositor.h> | ||
29 | #include <KWayland/Client/connection_thread.h> | 29 | #include <KWayland/Client/connection_thread.h> | ||
30 | #include <KWayland/Client/seat.h> | 30 | #include <KWayland/Client/seat.h> | ||
31 | #include <KWayland/Client/server_decoration.h> | 31 | #include <KWayland/Client/server_decoration.h> | ||
Show All 20 Lines | |||||
52 | 52 | | |||
53 | private: | 53 | private: | ||
54 | AbstractClient *showWindow(bool decorated = false); | 54 | AbstractClient *showWindow(bool decorated = false); | ||
55 | KWayland::Client::Touch *m_touch = nullptr; | 55 | KWayland::Client::Touch *m_touch = nullptr; | ||
56 | }; | 56 | }; | ||
57 | 57 | | |||
58 | void TouchInputTest::initTestCase() | 58 | void TouchInputTest::initTestCase() | ||
59 | { | 59 | { | ||
60 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
61 | qRegisterMetaType<KWin::AbstractClient*>(); | 60 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
62 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
63 | QVERIFY(workspaceCreatedSpy.isValid()); | 62 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
64 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 64 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
66 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 65 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
67 | 66 | | |||
68 | kwinApp()->start(); | 67 | kwinApp()->start(); | ||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |