aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoroutfoxxed <[email protected]>2024-05-06 07:32:01 -0700
committerGitHub <[email protected]>2024-05-06 15:32:01 +0100
commit05e4a3f1a89ec2defb1d77a223a9ce94e75fc76e (patch)
treedbfbd2439fd02a0692d04c6c9fb1cb17d665edeb
parenta8a04c746b07fe80bb852bb42473d58868d3b294 (diff)
downloadHyprland-05e4a3f1a89ec2defb1d77a223a9ce94e75fc76e.tar.gz
Hyprland-05e4a3f1a89ec2defb1d77a223a9ce94e75fc76e.zip
windows: Revert "window: set config only when both props end anims" (#5904)
This reverts commit 7617c03dfd0073654ca8c4d9a6f5db278d14cd28, fixing a bug that caused the bottom right corner of windows to animate oddly.
-rw-r--r--src/events/Windows.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index db4e0985..8643a539 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -36,10 +36,10 @@ void setAnimToMove(void* data) {
CBaseAnimatedVariable* animvar = (CBaseAnimatedVariable*)data;
- if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated()) {
- animvar->setConfig(PANIMCFG);
+ animvar->setConfig(PANIMCFG);
+
+ if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated())
animvar->getWindow()->m_bAnimatingIn = false;
- }
}
void Events::listener_mapWindow(void* owner, void* data) {