From 52db21660801ef4300a8b3c5dbb5c7e244ed2d19 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 2 Mar 2024 15:20:35 +0000 Subject: [PATCH] events: don't switch to active workspace on workspace rule --- src/events/Windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 83aa36d7..6209b77b 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -290,7 +290,7 @@ void Events::listener_mapWindow(void* owner, void* data) { if (!workspaceSilent) { if (pWorkspace->m_bIsSpecialWorkspace) g_pCompositor->getMonitorFromID(pWorkspace->m_iMonitorID)->setSpecialWorkspace(pWorkspace); - else + else if (PMONITOR->activeWorkspace != REQUESTEDWORKSPACEID) g_pKeybindManager->m_mDispatchers["workspace"](requestedWorkspaceName); PMONITOR = g_pCompositor->m_pLastMonitor;