summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-09 22:43:52 +0000
committerVaxry <vaxry@vaxry.net>2023-11-09 22:43:52 +0000
commit8dd02eb5f3d47ce67a33c836ea6d648bd6967962 (patch)
tree0fc6553ec14b3b1a9d1373d9f8a5ea21204eca3d /src/layout/IHyprLayout.cpp
parent14195835ef1dd25e10b0d873ec75c004b238ccba (diff)
xdg-shell: update reported size on ack_configure
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
-rw-r--r--src/layout/IHyprLayout.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp
index c5ed1199..abc1aeda 100644
--- a/src/layout/IHyprLayout.cpp
+++ b/src/layout/IHyprLayout.cpp
@@ -162,8 +162,10 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) {
g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv());
g_pCompositor->changeWindowZOrder(pWindow, true);
- } else
+ } else {
pWindow->m_vPendingReportedSize = pWindow->m_vRealSize.goalv();
+ pWindow->m_vReportedSize = pWindow->m_vPendingReportedSize;
+ }
}
void IHyprLayout::onBeginDragWindow() {