From d1e5f484461e27133317c78b81347d05dc3a2760 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 24 Aug 2025 14:14:30 +1000 Subject: internal: rename Hyprland -> Hypr Prevent shadowing Fixes window info not changing on switching to an empty workspace --- modules/bar/components/workspaces/SpecialWorkspaces.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/bar/components/workspaces/SpecialWorkspaces.qml') diff --git a/modules/bar/components/workspaces/SpecialWorkspaces.qml b/modules/bar/components/workspaces/SpecialWorkspaces.qml index fb31257..00beff9 100644 --- a/modules/bar/components/workspaces/SpecialWorkspaces.qml +++ b/modules/bar/components/workspaces/SpecialWorkspaces.qml @@ -14,8 +14,8 @@ Item { id: root required property ShellScreen screen - readonly property HyprlandMonitor monitor: Hyprland.monitorFor(screen) - readonly property string activeSpecial: (Config.bar.workspaces.perMonitorWorkspaces ? monitor : Hyprland.focusedMonitor)?.lastIpcObject.specialWorkspace.name ?? "" + readonly property HyprlandMonitor monitor: Hypr.monitorFor(screen) + readonly property string activeSpecial: (Config.bar.workspaces.perMonitorWorkspaces ? monitor : Hypr.focusedMonitor)?.lastIpcObject.specialWorkspace.name ?? "" layer.enabled: true layer.effect: ShaderEffect { @@ -98,7 +98,7 @@ Item { onCurrentIndexChanged: currentIndex = Qt.binding(() => model.values.findIndex(w => w.name === root.activeSpecial)) model: ScriptModel { - values: Hyprland.workspaces.values.filter(w => w.name.startsWith("special:") && (!Config.bar.workspaces.perMonitorWorkspaces || w.monitor === root.monitor)) + values: Hypr.workspaces.values.filter(w => w.name.startsWith("special:") && (!Config.bar.workspaces.perMonitorWorkspaces || w.monitor === root.monitor)) } preferredHighlightBegin: 0 @@ -229,7 +229,7 @@ Item { Repeater { model: ScriptModel { - values: Hyprland.toplevels.values.filter(c => c.workspace?.id === ws.wsId) + values: Hypr.toplevels.values.filter(c => c.workspace?.id === ws.wsId) } MaterialIcon { @@ -357,9 +357,9 @@ Item { const ws = view.itemAt(event.x, event.y); if (ws?.modelData) - Hyprland.dispatch(`togglespecialworkspace ${ws.modelData.name.slice(8)}`); + Hypr.dispatch(`togglespecialworkspace ${ws.modelData.name.slice(8)}`); else - Hyprland.dispatch("togglespecialworkspace special"); + Hypr.dispatch("togglespecialworkspace special"); } } -- cgit v1.2.3-freya