aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorthejch <[email protected]>2023-11-15 04:32:02 -0800
committerGitHub <[email protected]>2023-11-15 12:32:02 +0000
commit9e3dccca76ca3af4e96ac80c2ddef4774dc1354b (patch)
tree12c45e03b23dd9682861034e0cf43f4eaefbc496
parent81598b3dbdf3c01bb04fa377e65cfde91e6b2ab1 (diff)
downloadHyprland-9e3dccca76ca3af4e96ac80c2ddef4774dc1354b.tar.gz
Hyprland-9e3dccca76ca3af4e96ac80c2ddef4774dc1354b.zip
keybinds: Close special workspace after moving windows out of it (#3649)
* use old monitor * use pMonitor for for special workspace
-rw-r--r--src/managers/KeybindManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 553872a5..aa35e3fd 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -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);