From 40b1e8297f35f4120359f849038d6849fda65628 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 30 Oct 2025 11:24:41 +0100 Subject: [PATCH] lock: fix weird hiding anim with floating windows --- dots/.config/quickshell/ii/modules/lock/Lock.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/modules/lock/Lock.qml b/dots/.config/quickshell/ii/modules/lock/Lock.qml index 1a273cb0b..ead478bdc 100644 --- a/dots/.config/quickshell/ii/modules/lock/Lock.qml +++ b/dots/.config/quickshell/ii/modules/lock/Lock.qml @@ -24,16 +24,21 @@ Scope { property var windowData: [] function saveWindowPositionAndTile() { - root.windowData = HyprlandData.windowList.filter(w => w.floating) + Hyprland.dispatch(`keyword dwindle:pseudotile true`) + root.windowData = HyprlandData.windowList.filter(w => (w.floating && w.workspace.id === HyprlandData.activeWorkspace.id)) root.windowData.forEach(w => { + Hyprland.dispatch(`pseudo address:${w.address}`) Hyprland.dispatch(`settiled address:${w.address}`) + Hyprland.dispatch(`movetoworkspacesilent ${w.workspace.id},address:${w.address}`) }) } function restoreWindowPositionAndTile() { root.windowData.forEach(w => { Hyprland.dispatch(`setfloating address:${w.address}`) Hyprland.dispatch(`movewindowpixel exact ${w.at[0]} ${w.at[1]}, address:${w.address}`) + Hyprland.dispatch(`pseudo address:${w.address}`) }) + Hyprland.dispatch(`keyword dwindle:pseudotile false`) } // This stores all the information shared between the lock surfaces on each screen.