mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 04:49:48 +01:00
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:
parent
81598b3dbd
commit
9e3dccca76
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue