keybinds: Close special workspace after moving windows out of it (#3649)

* use old monitor

* use pMonitor for for special workspace
This commit is contained in:
thejch 2023-11-15 04:32:02 -08:00 committed by GitHub
parent 81598b3dbd
commit 9e3dccca76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -949,6 +949,11 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
POLDWS->m_pLastFocusedWindow = g_pCompositor->getFirstWindowOnWorkspace(POLDWS->m_iID);
if (pWorkspace->m_bIsSpecialWorkspace)
pMonitor->setSpecialWorkspace(pWorkspace);
else if (POLDWS->m_bIsSpecialWorkspace)
g_pCompositor->getMonitorFromID(POLDWS->m_iMonitorID)->setSpecialWorkspace(nullptr);
pMonitor->changeWorkspace(pWorkspace);
g_pCompositor->focusWindow(PWINDOW);