Changeset View
Changeset View
Standalone View
Standalone View
xdgshellclient.h
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | 164 | private: | |||
---|---|---|---|---|---|
183 | // called on surface commit and processes all m_pendingConfigureRequests up to m_lastAckedConfigureReqest | 183 | // called on surface commit and processes all m_pendingConfigureRequests up to m_lastAckedConfigureReqest | ||
184 | void updatePendingGeometry(); | 184 | void updatePendingGeometry(); | ||
185 | QPoint popupOffset(const QRect &anchorRect, const Qt::Edges anchorEdge, const Qt::Edges gravity, const QSize popupSize) const; | 185 | QPoint popupOffset(const QRect &anchorRect, const Qt::Edges anchorEdge, const Qt::Edges gravity, const QSize popupSize) const; | ||
186 | void requestGeometry(const QRect &rect); | 186 | void requestGeometry(const QRect &rect); | ||
187 | void doSetGeometry(const QRect &rect); | 187 | void doSetGeometry(const QRect &rect); | ||
188 | void unmap(); | 188 | void unmap(); | ||
189 | void markAsMapped(); | 189 | void markAsMapped(); | ||
190 | QRect determineBufferGeometry() const; | 190 | QRect determineBufferGeometry() const; | ||
191 | void ping(PingReason reason); | ||||
191 | static void deleteClient(XdgShellClient *c); | 192 | static void deleteClient(XdgShellClient *c); | ||
192 | 193 | | |||
193 | QRect adjustMoveGeometry(const QRect &rect) const; | 194 | QRect adjustMoveGeometry(const QRect &rect) const; | ||
194 | QRect adjustResizeGeometry(const QRect &rect) const; | 195 | QRect adjustResizeGeometry(const QRect &rect) const; | ||
195 | 196 | | |||
196 | KWayland::Server::XdgShellSurfaceInterface *m_xdgShellSurface; | 197 | KWayland::Server::XdgShellSurfaceInterface *m_xdgShellSurface; | ||
197 | KWayland::Server::XdgShellPopupInterface *m_xdgShellPopup; | 198 | KWayland::Server::XdgShellPopupInterface *m_xdgShellPopup; | ||
198 | 199 | | |||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
255 | private: | 256 | private: | ||
256 | XdgShellClient *m_client; | 257 | XdgShellClient *m_client; | ||
257 | }; | 258 | }; | ||
258 | friend class RequestGeometryBlocker; | 259 | friend class RequestGeometryBlocker; | ||
259 | int m_requestGeometryBlockCounter = 0; | 260 | int m_requestGeometryBlockCounter = 0; | ||
260 | QRect m_blockedRequestGeometry; | 261 | QRect m_blockedRequestGeometry; | ||
261 | QString m_caption; | 262 | QString m_caption; | ||
262 | QString m_captionSuffix; | 263 | QString m_captionSuffix; | ||
263 | QHash<qint32, PingReason> m_pingSerials; | 264 | QHash<quint32, PingReason> m_pingSerials; | ||
264 | 265 | | |||
265 | bool m_isInitialized = false; | 266 | bool m_isInitialized = false; | ||
266 | 267 | | |||
267 | friend class Workspace; | 268 | friend class Workspace; | ||
268 | }; | 269 | }; | ||
269 | 270 | | |||
270 | } | 271 | } | ||
271 | 272 | | |||
272 | Q_DECLARE_METATYPE(KWin::XdgShellClient *) | 273 | Q_DECLARE_METATYPE(KWin::XdgShellClient *) |