From f5f4c51a73e34383a98c984311d63c7f56a56f6e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Mar 2026 22:16:06 +1100 Subject: [PATCH] bar/activewindow: fix anim --- services/Hypr.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/Hypr.qml b/services/Hypr.qml index 86c82f6b..c703f704 100644 --- a/services/Hypr.qml +++ b/services/Hypr.qml @@ -16,7 +16,10 @@ Singleton { readonly property var workspaces: Hyprland.workspaces readonly property var monitors: Hyprland.monitors - readonly property HyprlandToplevel activeToplevel: Hyprland.activeToplevel?.wayland?.activated ? Hyprland.activeToplevel : null + readonly property HyprlandToplevel activeToplevel: { + const t = Hyprland.activeToplevel; + return t?.workspace?.name.startsWith("special:") || Hyprland.focusedWorkspace?.toplevels.values.length > 0 ? t : null; + } readonly property HyprlandWorkspace focusedWorkspace: Hyprland.focusedWorkspace readonly property HyprlandMonitor focusedMonitor: Hyprland.focusedMonitor readonly property int activeWsId: focusedWorkspace?.id ?? 1