summaryrefslogtreecommitdiff
path: root/src/desktop/view/Window.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2026-04-04 23:20:32 +0100
committerVaxry <43317083+vaxerski@users.noreply.github.com>2026-04-04 19:00:34 -0400
commit3c88ac8ead1fec0fb76cf8a48da0b8e1afe864df (patch)
tree5903209b2aa6409ef944965a39efada1b6ef840c /src/desktop/view/Window.hpp
parent5bf2bbeda94feefab5708bf669130e24d20be4e3 (diff)
desktop/window: optimize getRealBorderSize()
Diffstat (limited to 'src/desktop/view/Window.hpp')
-rw-r--r--src/desktop/view/Window.hpp4
1 files changed, 4 insertions, 0 deletions
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<float> m_borderFadeAnimationProgress;
PHLANIMVAR<float> m_borderAngleAnimationProgress;
+ // Cached border size (invalidated by updateWindowData)
+ mutable int m_cachedBorderSize = -1;
+ mutable bool m_borderSizeCacheDirty = true;
+
// Fade in-out
PHLANIMVAR<float> m_alpha;
bool m_fadingOut = false;