make activewindow report 'desktop' when active toplevel is not on the current ws
This commit is contained in:
parent
ba0ead5591
commit
91143bea91
1 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,8 @@ Rectangle {
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
clip: true
|
clip: true
|
||||||
StyledText {
|
StyledText {
|
||||||
text: Hyprland.activeToplevel?.title ?? "Desktop"
|
property bool onWs: Hyprland.activeToplevel.workspace == Hyprland.focusedWorkspace
|
||||||
|
text: onWs ? Hyprland.activeToplevel?.title ?? "Desktop" : "Desktop"
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue