diff options
author | vaxerski <[email protected]> | 2023-09-03 13:02:05 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-03 13:02:05 +0200 |
commit | e6ca4b6eeedc0f36f855645bd9d6568f235cbf51 (patch) | |
tree | d5a15feec45c6bb87034d8063c532ca535213959 | |
parent | 5e0cf7d6a511cc9c2c070e502cb2dc68fce6e611 (diff) | |
download | Hyprland-e6ca4b6eeedc0f36f855645bd9d6568f235cbf51.tar.gz Hyprland-e6ca4b6eeedc0f36f855645bd9d6568f235cbf51.zip |
window: check for special id matching in close_special_on_empty
-rw-r--r-- | src/Window.cpp | 2 |
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); } } |