From 3c88ac8ead1fec0fb76cf8a48da0b8e1afe864df Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 4 Apr 2026 23:20:32 +0100 Subject: desktop/window: optimize getRealBorderSize() --- src/desktop/view/Window.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/desktop/view/Window.hpp') diff --git a/src/desktop/view/Window.hpp b/src/desktop/view/Window.hpp index 2a3d6563..f69585e3 100644 --- a/src/desktop/view/Window.hpp +++ b/src/desktop/view/Window.hpp @@ -188,6 +188,10 @@ namespace Desktop::View { PHLANIMVAR m_borderFadeAnimationProgress; PHLANIMVAR m_borderAngleAnimationProgress; + // Cached border size (invalidated by updateWindowData) + mutable int m_cachedBorderSize = -1; + mutable bool m_borderSizeCacheDirty = true; + // Fade in-out PHLANIMVAR m_alpha; bool m_fadingOut = false; -- cgit v1.2.3