Moved to module structure to work in embeded qs processes
Tag and publish to AUR / tag (push) Successful in 1m20s
Tag and publish to AUR / publish (push) Has been skipped

This commit is contained in:
Radu Macocian
2026-07-15 15:25:33 +02:00
parent c63d1dc6ce
commit 58823cb24a
11 changed files with 46 additions and 3 deletions
+25
View File
@@ -0,0 +1,25 @@
import QtQuick
import Quickshell.Hyprland
import Quickshell.Hyprland._FocusGrab
Item {
id: root
// Set by the Loader's parent — the launcher PanelWindow. We can't access
// siblings directly, so pass it through this property.
property var window: null
property bool armed: false
HyprlandFocusGrab {
active: root.armed && root.window !== null
windows: root.window ? [root.window] : []
onCleared: LauncherService.close()
}
Connections {
target: Hyprland
function onFocusedWorkspaceChanged() {
if (root.armed) LauncherService.close();
}
}
}