aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-05-29 16:01:45 +0200
committervaxerski <[email protected]>2022-05-29 16:01:45 +0200
commitf5645805d8db9e6d45dd4d82bff12054b3b81180 (patch)
tree3d5ddaaa487436b55957748c87f2508b51fb20f4
parent15338fcf63a22ea45454606fcf580f2d2c4f50de (diff)
downloadHyprland-f5645805d8db9e6d45dd4d82bff12054b3b81180.tar.gz
Hyprland-f5645805d8db9e6d45dd4d82bff12054b3b81180.zip
Don't animate out if window wasnt animated in
-rw-r--r--src/events/Windows.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 5d7a85d3..313f87be 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -259,7 +259,9 @@ void Events::listener_unmapWindow(void* owner, void* data) {
// do the animation thing
PWINDOW->m_vOriginalClosedPos = PWINDOW->m_vRealPosition.vec();
PWINDOW->m_vOriginalClosedSize = PWINDOW->m_vRealSize.vec();
- PWINDOW->m_vRealPosition = PWINDOW->m_vRealPosition.vec() + Vector2D(0.01f, 0.01f); // it has to be animated, otherwise onWindowPostCreateClose will ignore it
+
+ if (!PWINDOW->m_bX11DoesntWantBorders) // don't animate out if they weren't animated in.
+ PWINDOW->m_vRealPosition = PWINDOW->m_vRealPosition.vec() + Vector2D(0.01f, 0.01f); // it has to be animated, otherwise onWindowPostCreateClose will ignore it
g_pAnimationManager->onWindowPostCreateClose(PWINDOW, true);
// Destroy Foreign Toplevel