events: don't switch to active workspace on workspace rule

This commit is contained in:
Vaxry 2024-03-02 15:20:35 +00:00
parent 1e311c947e
commit 52db216608

View file

@ -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;