Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
62 | class QtSurfaceExtensionInterface; | 62 | class QtSurfaceExtensionInterface; | ||
63 | class OutputManagementInterface; | 63 | class OutputManagementInterface; | ||
64 | class OutputConfigurationInterface; | 64 | class OutputConfigurationInterface; | ||
65 | class XdgDecorationManagerInterface; | 65 | class XdgDecorationManagerInterface; | ||
66 | class XdgShellInterface; | 66 | class XdgShellInterface; | ||
67 | class XdgForeignInterface; | 67 | class XdgForeignInterface; | ||
68 | class XdgOutputManagerInterface; | 68 | class XdgOutputManagerInterface; | ||
69 | class KeyStateInterface; | 69 | class KeyStateInterface; | ||
70 | class LinuxDmabufUnstableV1Interface; | ||||
71 | class LinuxDmabufUnstableV1Buffer; | ||||
70 | } | 72 | } | ||
71 | } | 73 | } | ||
72 | 74 | | |||
73 | namespace KWin | 75 | namespace KWin | ||
74 | { | 76 | { | ||
75 | class XdgShellClient; | 77 | class XdgShellClient; | ||
76 | 78 | | |||
77 | class AbstractClient; | 79 | class AbstractClient; | ||
Show All 35 Lines | 114 | KWayland::Server::PlasmaWindowManagementInterface *windowManagement() { | |||
113 | return m_windowManagement; | 115 | return m_windowManagement; | ||
114 | } | 116 | } | ||
115 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | 117 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | ||
116 | return m_decorationManager; | 118 | return m_decorationManager; | ||
117 | } | 119 | } | ||
118 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | 120 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | ||
119 | return m_xdgOutputManager; | 121 | return m_xdgOutputManager; | ||
120 | } | 122 | } | ||
123 | KWayland::Server::LinuxDmabufUnstableV1Interface *linuxDmabuf(); | ||||
121 | 124 | | |||
122 | QList<XdgShellClient *> clients() const { | 125 | QList<XdgShellClient *> clients() const { | ||
123 | return m_clients; | 126 | return m_clients; | ||
124 | } | 127 | } | ||
125 | void removeClient(XdgShellClient *c); | 128 | void removeClient(XdgShellClient *c); | ||
126 | XdgShellClient *findClient(quint32 id) const; | 129 | XdgShellClient *findClient(quint32 id) const; | ||
127 | XdgShellClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | 130 | XdgShellClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | ||
128 | AbstractClient *findAbstractClient(KWayland::Server::SurfaceInterface *surface) const; | 131 | AbstractClient *findAbstractClient(KWayland::Server::SurfaceInterface *surface) const; | ||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | |||||
211 | /** | 214 | /** | ||
212 | * Creates a Wayland connection using a socket pair. | 215 | * Creates a Wayland connection using a socket pair. | ||
213 | */ | 216 | */ | ||
214 | SocketPairConnection createConnection(); | 217 | SocketPairConnection createConnection(); | ||
215 | 218 | | |||
216 | void simulateUserActivity(); | 219 | void simulateUserActivity(); | ||
217 | void updateKeyState(KWin::Xkb::LEDs leds); | 220 | void updateKeyState(KWin::Xkb::LEDs leds); | ||
218 | 221 | | |||
222 | QSet<KWayland::Server::LinuxDmabufUnstableV1Buffer*> linuxDmabufBuffers() const { | ||||
223 | return m_linuxDmabufBuffers; | ||||
224 | } | ||||
225 | void addLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | ||||
226 | m_linuxDmabufBuffers << buffer; | ||||
227 | } | ||||
228 | void removeLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | ||||
229 | m_linuxDmabufBuffers.remove(buffer); | ||||
230 | } | ||||
231 | | ||||
219 | Q_SIGNALS: | 232 | Q_SIGNALS: | ||
220 | void shellClientAdded(KWin::XdgShellClient *); | 233 | void shellClientAdded(KWin::XdgShellClient *); | ||
221 | void shellClientRemoved(KWin::XdgShellClient *); | 234 | void shellClientRemoved(KWin::XdgShellClient *); | ||
222 | void terminatingInternalClientConnection(); | 235 | void terminatingInternalClientConnection(); | ||
223 | void initialized(); | 236 | void initialized(); | ||
224 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | 237 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | ||
225 | 238 | | |||
226 | private: | 239 | private: | ||
Show All 14 Lines | |||||
241 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr; | 254 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr; | ||
242 | KWayland::Server::ServerSideDecorationManagerInterface *m_decorationManager = nullptr; | 255 | KWayland::Server::ServerSideDecorationManagerInterface *m_decorationManager = nullptr; | ||
243 | KWayland::Server::OutputManagementInterface *m_outputManagement = nullptr; | 256 | KWayland::Server::OutputManagementInterface *m_outputManagement = nullptr; | ||
244 | KWayland::Server::AppMenuManagerInterface *m_appMenuManager = nullptr; | 257 | KWayland::Server::AppMenuManagerInterface *m_appMenuManager = nullptr; | ||
245 | KWayland::Server::ServerSideDecorationPaletteManagerInterface *m_paletteManager = nullptr; | 258 | KWayland::Server::ServerSideDecorationPaletteManagerInterface *m_paletteManager = nullptr; | ||
246 | KWayland::Server::IdleInterface *m_idle = nullptr; | 259 | KWayland::Server::IdleInterface *m_idle = nullptr; | ||
247 | KWayland::Server::XdgOutputManagerInterface *m_xdgOutputManager = nullptr; | 260 | KWayland::Server::XdgOutputManagerInterface *m_xdgOutputManager = nullptr; | ||
248 | KWayland::Server::XdgDecorationManagerInterface *m_xdgDecorationManager = nullptr; | 261 | KWayland::Server::XdgDecorationManagerInterface *m_xdgDecorationManager = nullptr; | ||
262 | KWayland::Server::LinuxDmabufUnstableV1Interface *m_linuxDmabuf = nullptr; | ||||
263 | QSet<KWayland::Server::LinuxDmabufUnstableV1Buffer*> m_linuxDmabufBuffers; | ||||
249 | struct { | 264 | struct { | ||
250 | KWayland::Server::ClientConnection *client = nullptr; | 265 | KWayland::Server::ClientConnection *client = nullptr; | ||
251 | QMetaObject::Connection destroyConnection; | 266 | QMetaObject::Connection destroyConnection; | ||
252 | } m_xwayland; | 267 | } m_xwayland; | ||
253 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | 268 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | ||
254 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | 269 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | ||
255 | struct { | 270 | struct { | ||
256 | KWayland::Server::ClientConnection *server = nullptr; | 271 | KWayland::Server::ClientConnection *server = nullptr; | ||
Show All 28 Lines |