summaryrefslogtreecommitdiff
path: root/services/Hypr.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-24 20:35:21 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-24 20:35:21 +1000
commit61884c07a71ddc4c7110acde243f3b12f217de2b (patch)
treeb1468e2550d138d8589487a7d7f8a381da97f87f /services/Hypr.qml
parentinternal: cleanup (diff)
downloadcaelestia-shell-61884c07a71ddc4c7110acde243f3b12f217de2b.tar.gz
caelestia-shell-61884c07a71ddc4c7110acde243f3b12f217de2b.tar.bz2
caelestia-shell-61884c07a71ddc4c7110acde243f3b12f217de2b.zip
Revert "hyprland: fix active client on empty ws"
This reverts commit a8151fc89d9a7977e5fa5dd3dfbed17c8f6101a1.
Diffstat (limited to 'services/Hypr.qml')
-rw-r--r--services/Hypr.qml9
1 files changed, 1 insertions, 8 deletions
diff --git a/services/Hypr.qml b/services/Hypr.qml
index 249f5ae..3a3d5e4 100644
--- a/services/Hypr.qml
+++ b/services/Hypr.qml
@@ -11,16 +11,9 @@ Singleton {
readonly property var toplevels: Hyprland.toplevels
readonly property var workspaces: Hyprland.workspaces
readonly property var monitors: Hyprland.monitors
-
- readonly property HyprlandToplevel activeToplevel: {
- const t = Hyprland.activeToplevel;
- if (t?.workspace?.focused || t?.workspace?.name.startsWith("special:"))
- return t;
- return null;
- }
+ readonly property HyprlandToplevel activeToplevel: Hyprland.activeToplevel
readonly property HyprlandWorkspace focusedWorkspace: Hyprland.focusedWorkspace
readonly property HyprlandMonitor focusedMonitor: Hyprland.focusedMonitor
-
readonly property int activeWsId: focusedWorkspace?.id ?? 1
readonly property string kbLayout: kbMap.get(kbLayoutFull) ?? "??"
property string kbLayoutFull: "?"