summaryrefslogtreecommitdiff
path: root/modules/bar/components/ActiveWindow.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-27 21:37:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-27 21:37:15 +1000
commitb264ae9888575df22e15d89a361845f84202106a (patch)
tree4b3d85117265f35b2ddda0fd00e3643b3b16d27c /modules/bar/components/ActiveWindow.qml
parenticons: fix grade more icons (diff)
downloadcaelestia-shell-b264ae9888575df22e15d89a361845f84202106a.tar.gz
caelestia-shell-b264ae9888575df22e15d89a361845f84202106a.tar.bz2
caelestia-shell-b264ae9888575df22e15d89a361845f84202106a.zip
internal: use hyprlandtoplevel
Diffstat (limited to 'modules/bar/components/ActiveWindow.qml')
-rw-r--r--modules/bar/components/ActiveWindow.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml
index f6204ae..fc0c303 100644
--- a/modules/bar/components/ActiveWindow.qml
+++ b/modules/bar/components/ActiveWindow.qml
@@ -60,7 +60,7 @@ Item {
id: icon
animate: true
- text: Icons.getAppCategoryIcon(Hyprland.activeClient?.wmClass, "desktop_windows")
+ text: Icons.getAppCategoryIcon(Hyprland.activeToplevel?.lastIpcObject.class, "desktop_windows")
color: root.colour
anchors.horizontalCenter: parent.horizontalCenter
@@ -77,7 +77,7 @@ Item {
TextMetrics {
id: metrics
- text: Hyprland.activeClient?.title ?? qsTr("Desktop")
+ text: Hyprland.activeToplevel?.title ?? qsTr("Desktop")
font.pointSize: Appearance.font.size.smaller
font.family: Appearance.font.family.mono
elide: Qt.ElideRight