summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorMaximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com>2025-01-24 18:22:05 +0000
committerGitHub <noreply@github.com>2025-01-24 19:22:05 +0100
commit80b2fd135b45f2c2e41ceb312314908f6a3e7b30 (patch)
treed31755b1ffdc7c91c6703149c26aeffb2f8e4247 /src/desktop/Window.cpp
parentfda9790cde5eb2bd15c19a1e67211eabbebf9024 (diff)
animations: fix borderangle once (#9149)
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index fb5904be..5306bbb4 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -1274,6 +1274,14 @@ void CWindow::onWorkspaceAnimUpdate() {
m_vFloatingOffset = offset;
}
+void CWindow::onFocusAnimUpdate() {
+ // borderangle once
+ if (m_fBorderAngleAnimationProgress->enabled() && !m_fBorderAngleAnimationProgress->isBeingAnimated()) {
+ m_fBorderAngleAnimationProgress->setValueAndWarp(0.f);
+ *m_fBorderAngleAnimationProgress = 1.f;
+ }
+}
+
int CWindow::popupsCount() {
if (m_bIsX11)
return 0;