From aa7b2150559031cdb9bfe5c7d7ce24ed890a41bb Mon Sep 17 00:00:00 2001
From: matt1432 <matt@nelim.org>
Date: Tue, 16 Apr 2024 08:14:58 -0400
Subject: [PATCH] fix(ags): set transition on windows everytime they open

---
 modules/ags/config/ts/misc/popup.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/ags/config/ts/misc/popup.ts b/modules/ags/config/ts/misc/popup.ts
index 177fecad..a4769fbc 100644
--- a/modules/ags/config/ts/misc/popup.ts
+++ b/modules/ags/config/ts/misc/popup.ts
@@ -98,9 +98,6 @@ export class PopupWindow<
                         App.openWindow(`win-${name}`);
                     }
 
-                    // Make sure Hyprland got the message
-                    this.transition = transition;
-
                     // This connection should always run only once
                     App.disconnect(id);
                 });
@@ -113,6 +110,9 @@ export class PopupWindow<
 
         this.hook(App, (_, currentName, isOpen) => {
             if (currentName === `win-${name}`) {
+                // Make sure we have the right animation
+                this.transition = transition;
+
                 if (isOpen) {
                     this.on_open(this);
                 }