From 0493c08759632387a662bf921390cdb53138323a Mon Sep 17 00:00:00 2001 From: lunstia <136163666+lunstia@users.noreply.github.com> Date: Sun, 29 Mar 2026 19:33:18 -0400 Subject: [PATCH] Add quick fix for workspace bug coming back from a logout or sleep --- dots/.config/quickshell/ii/modules/ii/lock/Lock.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dots/.config/quickshell/ii/modules/ii/lock/Lock.qml b/dots/.config/quickshell/ii/modules/ii/lock/Lock.qml index 1837480ad..26d3e57ab 100644 --- a/dots/.config/quickshell/ii/modules/ii/lock/Lock.qml +++ b/dots/.config/quickshell/ii/modules/ii/lock/Lock.qml @@ -48,6 +48,9 @@ LockScreen { for (var i = 0; i < Quickshell.screens.length; ++i) { var mon = Quickshell.screens[i].name var mData = HyprlandData.monitors.find(m => m.name === mon) + if (mData?.activeWorkspace == undefined) { + return; + } var ws = (mData?.activeWorkspace?.id ?? 1) next[mon] = ws batch += "dispatch focusmonitor " + mon + "; dispatch workspace " + (2147483647 - ws) + "; "