From 8dd02eb5f3d47ce67a33c836ea6d648bd6967962 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 9 Nov 2023 22:43:52 +0000 Subject: xdg-shell: update reported size on ack_configure --- src/Window.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/Window.hpp') 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 m_iPendingSizeAck; // for restoring floating statuses Vector2D m_vLastFloatingSize; -- cgit v1.2.3