make activewindow report 'desktop' when active toplevel is not on the current ws

This commit is contained in:
lucy 2026-05-17 20:22:58 +02:00
commit 91143bea91

View file

@ -21,7 +21,8 @@ Rectangle {
color: 'transparent'
clip: true
StyledText {
text: Hyprland.activeToplevel?.title ?? "Desktop"
property bool onWs: Hyprland.activeToplevel.workspace == Hyprland.focusedWorkspace
text: onWs ? Hyprland.activeToplevel?.title ?? "Desktop" : "Desktop"
elide: Text.ElideRight
}
}