Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Line(s) | 85 | public: | |||
---|---|---|---|---|---|
117 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | 117 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | ||
118 | return m_decorationManager; | 118 | return m_decorationManager; | ||
119 | } | 119 | } | ||
120 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | 120 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | ||
121 | return m_xdgOutputManager; | 121 | return m_xdgOutputManager; | ||
122 | } | 122 | } | ||
123 | KWayland::Server::LinuxDmabufUnstableV1Interface *linuxDmabuf(); | 123 | KWayland::Server::LinuxDmabufUnstableV1Interface *linuxDmabuf(); | ||
124 | 124 | | |||
125 | QList<XdgShellClient *> clients() const { | 125 | QList<AbstractClient *> clients() const { | ||
126 | return m_clients; | 126 | return m_clients; | ||
127 | } | 127 | } | ||
128 | void removeClient(XdgShellClient *c); | 128 | void removeClient(AbstractClient *c); | ||
129 | XdgShellClient *findClient(quint32 id) const; | 129 | AbstractClient *findClient(quint32 id) const; | ||
130 | XdgShellClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | 130 | AbstractClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | ||
131 | AbstractClient *findAbstractClient(KWayland::Server::SurfaceInterface *surface) const; | 131 | XdgShellClient *findXdgShellClient(KWayland::Server::SurfaceInterface *surface) const; | ||
132 | 132 | | |||
133 | /** | 133 | /** | ||
134 | * @returns a transient parent of a surface imported with the foreign protocol, if any | 134 | * @returns a transient parent of a surface imported with the foreign protocol, if any | ||
135 | */ | 135 | */ | ||
136 | KWayland::Server::SurfaceInterface *findForeignTransientForSurface(KWayland::Server::SurfaceInterface *surface); | 136 | KWayland::Server::SurfaceInterface *findForeignTransientForSurface(KWayland::Server::SurfaceInterface *surface); | ||
137 | 137 | | |||
138 | /** | 138 | /** | ||
139 | * @returns file descriptor for Xwayland to connect to. | 139 | * @returns file descriptor for Xwayland to connect to. | ||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | |||||
225 | void addLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | 225 | void addLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | ||
226 | m_linuxDmabufBuffers << buffer; | 226 | m_linuxDmabufBuffers << buffer; | ||
227 | } | 227 | } | ||
228 | void removeLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | 228 | void removeLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | ||
229 | m_linuxDmabufBuffers.remove(buffer); | 229 | m_linuxDmabufBuffers.remove(buffer); | ||
230 | } | 230 | } | ||
231 | 231 | | |||
232 | Q_SIGNALS: | 232 | Q_SIGNALS: | ||
233 | void shellClientAdded(KWin::XdgShellClient *); | 233 | void shellClientAdded(KWin::AbstractClient *); | ||
234 | void shellClientRemoved(KWin::XdgShellClient *); | 234 | void shellClientRemoved(KWin::AbstractClient *); | ||
235 | void terminatingInternalClientConnection(); | 235 | void terminatingInternalClientConnection(); | ||
236 | void initialized(); | 236 | void initialized(); | ||
237 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | 237 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | ||
238 | 238 | | |||
239 | private: | 239 | private: | ||
240 | void shellClientShown(Toplevel *t); | 240 | void shellClientShown(Toplevel *t); | ||
241 | quint16 createClientId(KWayland::Server::ClientConnection *c); | 241 | quint16 createClientId(KWayland::Server::ClientConnection *c); | ||
242 | void destroyInternalConnection(); | 242 | void destroyInternalConnection(); | ||
Show All 33 Lines | 270 | struct { | |||
276 | KWayland::Client::Seat *seat = nullptr; | 276 | KWayland::Client::Seat *seat = nullptr; | ||
277 | KWayland::Client::DataDeviceManager *ddm = nullptr; | 277 | KWayland::Client::DataDeviceManager *ddm = nullptr; | ||
278 | KWayland::Client::ShmPool *shm = nullptr; | 278 | KWayland::Client::ShmPool *shm = nullptr; | ||
279 | bool interfacesAnnounced = false; | 279 | bool interfacesAnnounced = false; | ||
280 | 280 | | |||
281 | } m_internalConnection; | 281 | } m_internalConnection; | ||
282 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | 282 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | ||
283 | KWayland::Server::KeyStateInterface *m_keyState = nullptr; | 283 | KWayland::Server::KeyStateInterface *m_keyState = nullptr; | ||
284 | QList<XdgShellClient *> m_clients; | 284 | QList<AbstractClient *> m_clients; | ||
285 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | 285 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | ||
286 | InitalizationFlags m_initFlags; | 286 | InitalizationFlags m_initFlags; | ||
287 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | 287 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | ||
288 | KWIN_SINGLETON(WaylandServer) | 288 | KWIN_SINGLETON(WaylandServer) | ||
289 | }; | 289 | }; | ||
290 | 290 | | |||
291 | inline | 291 | inline | ||
292 | WaylandServer *waylandServer() { | 292 | WaylandServer *waylandServer() { | ||
293 | return WaylandServer::self(); | 293 | return WaylandServer::self(); | ||
294 | } | 294 | } | ||
295 | 295 | | |||
296 | } // namespace KWin | 296 | } // namespace KWin | ||
297 | 297 | | |||
298 | #endif | 298 | #endif | ||
299 | 299 | |