From d7209b90bb8d866a641a49f815481fa9bc323105 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 9 Aug 2023 14:28:04 +0200 Subject: renderer: remember extents before removing a window and use them for dt fixes #2351 --- src/Window.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Window.hpp') diff --git a/src/Window.hpp b/src/Window.hpp index d3c34a63..3ff9f6f7 100644 --- a/src/Window.hpp +++ b/src/Window.hpp @@ -241,11 +241,12 @@ class CWindow { CAnimatedVariable m_fBorderAngleAnimationProgress; // Fade in-out - CAnimatedVariable m_fAlpha; - bool m_bFadingOut = false; - bool m_bReadyToDelete = false; - Vector2D m_vOriginalClosedPos; // these will be used for calculations later on in - Vector2D m_vOriginalClosedSize; // drawing the closing animations + CAnimatedVariable m_fAlpha; + bool m_bFadingOut = false; + bool m_bReadyToDelete = false; + Vector2D m_vOriginalClosedPos; // these will be used for calculations later on in + Vector2D m_vOriginalClosedSize; // drawing the closing animations + SWindowDecorationExtents m_eOriginalClosedExtents; // For pinned (sticky) windows bool m_bPinned = false; @@ -307,6 +308,7 @@ class CWindow { // methods wlr_box getFullWindowBoundingBox(); + SWindowDecorationExtents getFullWindowExtents(); wlr_box getWindowInputBox(); wlr_box getWindowIdealBoundingBoxIgnoreReserved(); void updateWindowDecos(); -- cgit v1.2.3