summaryrefslogtreecommitdiff
path: root/src/helpers/SubsurfaceTree.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-10-30 14:49:49 +0000
committerVaxry <vaxry@vaxry.net>2023-10-30 14:49:49 +0000
commitcb6cfde6e82f9b146ba1bd937472aa17ec829167 (patch)
tree3e068d394bd8fae208ad5e6b26e2f741dfb30011 /src/helpers/SubsurfaceTree.cpp
parent8e91c038db0f512e5bfe84711ee1a1345055d7a3 (diff)
window: update window reported size on damage events
Diffstat (limited to 'src/helpers/SubsurfaceTree.cpp')
-rw-r--r--src/helpers/SubsurfaceTree.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp
index b0ed0bfa..c3716100 100644
--- a/src/helpers/SubsurfaceTree.cpp
+++ b/src/helpers/SubsurfaceTree.cpp
@@ -247,6 +247,9 @@ void Events::listener_commitSubsurface(void* owner, void* data) {
g_pHyprRenderer->damageSurface(pNode->pSurface->wlr(), lx, ly, SCALE);
if (pNode->pWindowOwner) {
+ // update reported size. Some windows do not send a ::commit afterwards. Odd.
+ pNode->pWindowOwner->m_vReportedSize = pNode->pWindowOwner->m_vPendingReportedSize;
+
// tearing: if solitary, redraw it. This still might be a single surface window
const auto PMONITOR = g_pCompositor->getMonitorFromID(pNode->pWindowOwner->m_iMonitorID);
if (PMONITOR->solitaryClient == pNode->pWindowOwner && pNode->pWindowOwner->canBeTorn() && PMONITOR->tearingState.canTear &&