From 782f32e83d7aab9424ebb1ad853c242f7e58950e Mon Sep 17 00:00:00 2001 From: Ross MacLeod Date: Mon, 19 Feb 2024 00:17:17 -0500 Subject: [PATCH] check m_pLastMonitor->specialWorkspaceID before checking activeWorkspace --- src/dispatchers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatchers.cpp b/src/dispatchers.cpp index 667b1cf..fd6c56d 100644 --- a/src/dispatchers.cpp +++ b/src/dispatchers.cpp @@ -9,7 +9,8 @@ int workspace_for_action(bool allow_fullscreen = false) { if (g_pLayoutManager->getCurrentLayout() != g_Hy3Layout.get()) return -1; - int workspace_id = g_pCompositor->m_pLastMonitor->activeWorkspace; + int workspace_id = g_pCompositor->m_pLastMonitor->specialWorkspaceID; + if (workspace_id == 0) workspace_id = g_pCompositor->m_pLastMonitor->activeWorkspace; if (workspace_id == -1) return -1; auto* workspace = g_pCompositor->getWorkspaceByID(workspace_id);