aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-03 13:02:05 +0200
committervaxerski <[email protected]>2023-09-03 13:02:05 +0200
commite6ca4b6eeedc0f36f855645bd9d6568f235cbf51 (patch)
treed5a15feec45c6bb87034d8063c532ca535213959
parent5e0cf7d6a511cc9c2c070e502cb2dc68fce6e611 (diff)
downloadHyprland-e6ca4b6eeedc0f36f855645bd9d6568f235cbf51.tar.gz
Hyprland-e6ca4b6eeedc0f36f855645bd9d6568f235cbf51.zip
window: check for special id matching in close_special_on_empty
-rw-r--r--src/Window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index b29d87e0..cd599c82 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -410,7 +410,7 @@ void CWindow::onUnmap() {
if (*PCLOSEONLASTSPECIAL && g_pCompositor->getWindowsOnWorkspace(m_iWorkspaceID) == 0 && g_pCompositor->isWorkspaceSpecial(m_iWorkspaceID)) {
const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID);
- if (PMONITOR)
+ if (PMONITOR && PMONITOR->specialWorkspaceID == m_iWorkspaceID)
PMONITOR->setSpecialWorkspace(nullptr);
}
}