Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/wayland_backend.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | #include <KWayland/Client/server_decoration.h> | 53 | #include <KWayland/Client/server_decoration.h> | ||
54 | #include <KWayland/Client/shm_pool.h> | 54 | #include <KWayland/Client/shm_pool.h> | ||
55 | #include <KWayland/Client/subcompositor.h> | 55 | #include <KWayland/Client/subcompositor.h> | ||
56 | #include <KWayland/Client/subsurface.h> | 56 | #include <KWayland/Client/subsurface.h> | ||
57 | #include <KWayland/Client/surface.h> | 57 | #include <KWayland/Client/surface.h> | ||
58 | #include <KWayland/Client/touch.h> | 58 | #include <KWayland/Client/touch.h> | ||
59 | #include <KWayland/Client/xdgshell.h> | 59 | #include <KWayland/Client/xdgshell.h> | ||
60 | 60 | | |||
61 | #include <KWayland/Server/seat_interface.h> | 61 | #include <KWaylandServer/seat_interface.h> | ||
62 | 62 | | |||
63 | #include <QMetaMethod> | 63 | #include <QMetaMethod> | ||
64 | #include <QThread> | 64 | #include <QThread> | ||
65 | 65 | | |||
66 | #include <linux/input.h> | 66 | #include <linux/input.h> | ||
67 | #include <wayland-cursor.h> | 67 | #include <wayland-cursor.h> | ||
68 | 68 | | |||
69 | namespace KWin | 69 | namespace KWin | ||
▲ Show 20 Lines • Show All 263 Lines • ▼ Show 20 Line(s) | 310 | if (hasTouch && !m_touch) { | |||
333 | ); | 333 | ); | ||
334 | } else { | 334 | } else { | ||
335 | destroyTouch(); | 335 | destroyTouch(); | ||
336 | } | 336 | } | ||
337 | } | 337 | } | ||
338 | ); | 338 | ); | ||
339 | WaylandServer *server = waylandServer(); | 339 | WaylandServer *server = waylandServer(); | ||
340 | if (server) { | 340 | if (server) { | ||
341 | using namespace KWayland::Server; | 341 | using namespace KWaylandServer; | ||
342 | SeatInterface *si = server->seat(); | 342 | SeatInterface *si = server->seat(); | ||
343 | connect(m_seat, &Seat::hasKeyboardChanged, si, &SeatInterface::setHasKeyboard); | 343 | connect(m_seat, &Seat::hasKeyboardChanged, si, &SeatInterface::setHasKeyboard); | ||
344 | connect(m_seat, &Seat::hasPointerChanged, si, &SeatInterface::setHasPointer); | 344 | connect(m_seat, &Seat::hasPointerChanged, si, &SeatInterface::setHasPointer); | ||
345 | connect(m_seat, &Seat::hasTouchChanged, si, &SeatInterface::setHasTouch); | 345 | connect(m_seat, &Seat::hasTouchChanged, si, &SeatInterface::setHasTouch); | ||
346 | connect(m_seat, &Seat::nameChanged, si, &SeatInterface::setName); | 346 | connect(m_seat, &Seat::nameChanged, si, &SeatInterface::setName); | ||
347 | } | 347 | } | ||
348 | } | 348 | } | ||
349 | 349 | | |||
▲ Show 20 Lines • Show All 491 Lines • Show Last 20 Lines |