Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 158 | KWayland::Client::ConnectionThread *internalClientConection() { | |||
---|---|---|---|---|---|
159 | return m_internalConnection.client; | 159 | return m_internalConnection.client; | ||
160 | } | 160 | } | ||
161 | KWayland::Client::Registry *internalClientRegistry() { | 161 | KWayland::Client::Registry *internalClientRegistry() { | ||
162 | return m_internalConnection.registry; | 162 | return m_internalConnection.registry; | ||
163 | } | 163 | } | ||
164 | void dispatch(); | 164 | void dispatch(); | ||
165 | quint32 createWindowId(KWayland::Server::SurfaceInterface *surface); | 165 | quint32 createWindowId(KWayland::Server::SurfaceInterface *surface); | ||
166 | 166 | | |||
167 | /** | ||||
168 | * Struct containing information for a created Wayland connection through a | ||||
169 | * socketpair. | ||||
170 | **/ | ||||
171 | struct SocketPairConnection { | ||||
172 | /** | ||||
173 | * ServerSide Connection | ||||
174 | **/ | ||||
175 | KWayland::Server::ClientConnection *connection = nullptr; | ||||
176 | /** | ||||
177 | * client-side file descriptor for the socket | ||||
178 | **/ | ||||
179 | int fd = -1; | ||||
180 | }; | ||||
181 | /** | ||||
182 | * Creates a Wayland connection using a socket pair. | ||||
183 | **/ | ||||
184 | SocketPairConnection createConnection(); | ||||
185 | | ||||
167 | Q_SIGNALS: | 186 | Q_SIGNALS: | ||
168 | void shellClientAdded(KWin::ShellClient*); | 187 | void shellClientAdded(KWin::ShellClient*); | ||
169 | void shellClientRemoved(KWin::ShellClient*); | 188 | void shellClientRemoved(KWin::ShellClient*); | ||
170 | void terminatingInternalClientConnection(); | 189 | void terminatingInternalClientConnection(); | ||
171 | void initialized(); | 190 | void initialized(); | ||
172 | 191 | | |||
173 | private: | 192 | private: | ||
174 | void setupX11ClipboardSync(); | 193 | void setupX11ClipboardSync(); | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |