mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 15:11:57 -07: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:
@@ -949,6 +949,11 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
|
|||||||
|
|
||||||
POLDWS->m_pLastFocusedWindow = g_pCompositor->getFirstWindowOnWorkspace(POLDWS->m_iID);
|
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);
|
pMonitor->changeWorkspace(pWorkspace);
|
||||||
|
|
||||||
g_pCompositor->focusWindow(PWINDOW);
|
g_pCompositor->focusWindow(PWINDOW);
|
||||||
|
Reference in New Issue
Block a user