Changeset View
Changeset View
Standalone View
Standalone View
events.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
58 | #ifdef XCB_ICCCM_FOUND | 58 | #ifdef XCB_ICCCM_FOUND | ||
59 | #include <xcb/xcb_icccm.h> | 59 | #include <xcb/xcb_icccm.h> | ||
60 | #endif | 60 | #endif | ||
61 | 61 | | |||
62 | #include "composite.h" | 62 | #include "composite.h" | ||
63 | #include "x11eventfilter.h" | 63 | #include "x11eventfilter.h" | ||
64 | 64 | | |||
65 | #include "wayland_server.h" | 65 | #include "wayland_server.h" | ||
66 | #include <KWayland/Server/surface_interface.h> | 66 | #include <KWaylandServer/surface_interface.h> | ||
67 | 67 | | |||
68 | #ifndef XCB_GE_GENERIC | 68 | #ifndef XCB_GE_GENERIC | ||
69 | #define XCB_GE_GENERIC 35 | 69 | #define XCB_GE_GENERIC 35 | ||
70 | typedef struct xcb_ge_generic_event_t { | 70 | typedef struct xcb_ge_generic_event_t { | ||
71 | uint8_t response_type; /**< */ | 71 | uint8_t response_type; /**< */ | ||
72 | uint8_t extension; /**< */ | 72 | uint8_t extension; /**< */ | ||
73 | uint16_t sequence; /**< */ | 73 | uint16_t sequence; /**< */ | ||
74 | uint32_t length; /**< */ | 74 | uint32_t length; /**< */ | ||
▲ Show 20 Lines • Show All 1265 Lines • ▼ Show 20 Line(s) | 1328 | { | |||
1340 | } | 1340 | } | ||
1341 | } | 1341 | } | ||
1342 | 1342 | | |||
1343 | void Toplevel::clientMessageEvent(xcb_client_message_event_t *e) | 1343 | void Toplevel::clientMessageEvent(xcb_client_message_event_t *e) | ||
1344 | { | 1344 | { | ||
1345 | if (e->type == atoms->wl_surface_id) { | 1345 | if (e->type == atoms->wl_surface_id) { | ||
1346 | m_surfaceId = e->data.data32[0]; | 1346 | m_surfaceId = e->data.data32[0]; | ||
1347 | if (auto w = waylandServer()) { | 1347 | if (auto w = waylandServer()) { | ||
1348 | if (auto s = KWayland::Server::SurfaceInterface::get(m_surfaceId, w->xWaylandConnection())) { | 1348 | if (auto s = KWaylandServer::SurfaceInterface::get(m_surfaceId, w->xWaylandConnection())) { | ||
1349 | setSurface(s); | 1349 | setSurface(s); | ||
1350 | } | 1350 | } | ||
1351 | } | 1351 | } | ||
1352 | emit surfaceIdChanged(m_surfaceId); | 1352 | emit surfaceIdChanged(m_surfaceId); | ||
1353 | } | 1353 | } | ||
1354 | } | 1354 | } | ||
1355 | 1355 | | |||
1356 | } // namespace | 1356 | } // namespace |