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/Bar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/bar/Bar.qml') diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 1d0db8d..9f5509b 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -101,7 +101,7 @@ Item { anchors.rightMargin: -Config.border.thickness onWheel: event => { - const activeWs = Hyprland.activeClient?.workspace?.name; + const activeWs = Hyprland.activeToplevel?.workspace?.name; if (activeWs?.startsWith("special:")) Hyprland.dispatch(`togglespecialworkspace ${activeWs.slice(8)}`); else if (event.angleDelta.y < 0 || Hyprland.activeWsId > 1) -- cgit v1.2.3-freya