diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-08-09 14:28:04 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-08-09 14:28:04 +0200 |
| commit | d7209b90bb8d866a641a49f815481fa9bc323105 (patch) | |
| tree | 82b1863ac05c0643384bbbad26cfbdb0be1cef06 /src/Window.hpp | |
| parent | 47430411d69d6cba9241775f0ea11722afeb74d7 (diff) | |
renderer: remember extents before removing a window and use them for dt
fixes #2351
Diffstat (limited to 'src/Window.hpp')
| -rw-r--r-- | src/Window.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
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(); |
