Changeset View
Changeset View
Standalone View
Standalone View
shell_client.h
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | 185 | private: | |||
---|---|---|---|---|---|
197 | void syncGeometryToInternalWindow(); | 197 | void syncGeometryToInternalWindow(); | ||
198 | void updateIcon(); | 198 | void updateIcon(); | ||
199 | void markAsMapped(); | 199 | void markAsMapped(); | ||
200 | void setTransient(); | 200 | void setTransient(); | ||
201 | bool shouldExposeToWindowManagement(); | 201 | bool shouldExposeToWindowManagement(); | ||
202 | void updateClientOutputs(); | 202 | void updateClientOutputs(); | ||
203 | KWayland::Server::XdgShellSurfaceInterface::States xdgSurfaceStates() const; | 203 | KWayland::Server::XdgShellSurfaceInterface::States xdgSurfaceStates() const; | ||
204 | void updateShowOnScreenEdge(); | 204 | void updateShowOnScreenEdge(); | ||
205 | // called on surface commit and processes all m_pendingConfigureRequests up to m_lastAckedConfigureReqest | ||||
206 | void updatePendingGeometry(); | ||||
205 | static void deleteClient(ShellClient *c); | 207 | static void deleteClient(ShellClient *c); | ||
206 | 208 | | |||
207 | KWayland::Server::ShellSurfaceInterface *m_shellSurface; | 209 | KWayland::Server::ShellSurfaceInterface *m_shellSurface; | ||
208 | KWayland::Server::XdgShellSurfaceInterface *m_xdgShellSurface; | 210 | KWayland::Server::XdgShellSurfaceInterface *m_xdgShellSurface; | ||
209 | KWayland::Server::XdgShellPopupInterface *m_xdgShellPopup; | 211 | KWayland::Server::XdgShellPopupInterface *m_xdgShellPopup; | ||
210 | QSize m_clientSize; | 212 | QSize m_clientSize; | ||
211 | 213 | | |||
212 | ClearablePoint m_positionAfterResize; // co-ordinates saved from a requestGeometry call, real geometry will be updated after the next damage event when the client has resized | 214 | struct PendingConfigureRequest { | ||
215 | //note for wl_shell we have no serial, so it and m_lastAckedConfigureRequest will always be 0 | ||||
romangg: minor: to better understand the comment replace `"it"` with `"serialId"` | |||||
216 | //meaning we treat a surface commit as having processed all requests | ||||
217 | int serialId = 0; | ||||
romangg: quint32 | |||||
218 | // position to apply after a resize operation has been completed | ||||
219 | QPoint positionAfterResize; | ||||
220 | }; | ||||
221 | QVector<PendingConfigureRequest> m_pendingConfigureRequests; | ||||
222 | int m_lastAckedConfigureRequest = 0; | ||||
223 | | ||||
213 | QRect m_geomFsRestore; //size and position of the window before it was set to fullscreen | 224 | QRect m_geomFsRestore; //size and position of the window before it was set to fullscreen | ||
214 | bool m_closing = false; | 225 | bool m_closing = false; | ||
215 | quint32 m_windowId = 0; | 226 | quint32 m_windowId = 0; | ||
216 | QWindow *m_internalWindow = nullptr; | 227 | QWindow *m_internalWindow = nullptr; | ||
217 | Qt::WindowFlags m_internalWindowFlags = Qt::WindowFlags(); | 228 | Qt::WindowFlags m_internalWindowFlags = Qt::WindowFlags(); | ||
218 | bool m_unmapped = true; | 229 | bool m_unmapped = true; | ||
219 | MaximizeMode m_maximizeMode = MaximizeRestore; | 230 | MaximizeMode m_maximizeMode = MaximizeRestore; | ||
220 | QRect m_geomMaximizeRestore; // size and position of the window before it was set to maximize | 231 | QRect m_geomMaximizeRestore; // size and position of the window before it was set to maximize | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |
minor: to better understand the comment replace "it" with "serialId"