diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-09 22:43:52 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-09 22:43:52 +0000 |
| commit | 8dd02eb5f3d47ce67a33c836ea6d648bd6967962 (patch) | |
| tree | 0fc6553ec14b3b1a9d1373d9f8a5ea21204eca3d /src/Window.hpp | |
| parent | 14195835ef1dd25e10b0d873ec75c004b238ccba (diff) | |
xdg-shell: update reported size on ack_configure
Diffstat (limited to 'src/Window.hpp')
| -rw-r--r-- | src/Window.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Window.hpp b/src/Window.hpp index dbfa2e04..915cf018 100644 --- a/src/Window.hpp +++ b/src/Window.hpp @@ -185,6 +185,7 @@ class CWindow { DYNLISTENER(setOverrideRedirect); DYNLISTENER(associateX11); DYNLISTENER(dissociateX11); + DYNLISTENER(ackConfigure); // DYNLISTENER(newSubsurfaceWindow); CWLSurface m_pWLSurface; @@ -204,9 +205,11 @@ class CWindow { CAnimatedVariable m_vRealSize; // for not spamming the protocols - Vector2D m_vReportedPosition; - Vector2D m_vReportedSize; - Vector2D m_vPendingReportedSize; + Vector2D m_vReportedPosition; + Vector2D m_vReportedSize; + Vector2D m_vPendingReportedSize; + bool m_bPendingSizeAcked = false; + std::optional<uint32_t> m_iPendingSizeAck; // for restoring floating statuses Vector2D m_vLastFloatingSize; |
