From b264ae9888575df22e15d89a361845f84202106a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 27 Jun 2025 21:37:15 +1000 Subject: internal: use hyprlandtoplevel --- modules/bar/components/workspaces/Workspace.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/bar/components/workspaces/Workspace.qml') diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml index dba0f86..0e0fcc9 100644 --- a/modules/bar/components/workspaces/Workspace.qml +++ b/modules/bar/components/workspaces/Workspace.qml @@ -76,14 +76,14 @@ Item { Repeater { model: ScriptModel { - values: Hyprland.clients.filter(c => c.workspace?.id === root.ws) + values: Hyprland.toplevels.values.filter(c => c.workspace?.id === root.ws) } MaterialIcon { - required property Hyprland.Client modelData + required property var modelData grade: 0 - text: Icons.getAppCategoryIcon(modelData.wmClass, "terminal") + text: Icons.getAppCategoryIcon(modelData.lastIpcObject.class, "terminal") color: Colours.palette.m3onSurfaceVariant } } -- cgit v1.2.3-freya