From 04d4670f933431f5deaad4b2045baeccc2a4494e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 23 Aug 2026 11:59:36 +0800 Subject: fix: don't set priority to -1 when indexOf returns that --- bar/Workspace.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bar') diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 662b9e2..a0f5f0e 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -234,7 +234,7 @@ Item { // no idea wats wrong w/ prev so we just unify it to use +/- 1 if (event.angleDelta.y < 0) { if (activeIndex + 1 < Bar.wss) - Hyprland.dispatch(`hl.dsp.focus({ workspace = '+1' })`); + Hyprland.dispatch(`hl.dsp.focus({ workspace = '+1' })`); else Hyprland.dispatch(`hl.dsp.focus({ workspace = '1' })`); } else if (event.angleDelta.y > 0) { -- cgit v1.2.3