mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-24 10:04:19 -05:00
desktop/window: fix special workspace hiding on window unmap fallback (#15763)
This commit is contained in:
@@ -2679,6 +2679,9 @@ void CWindow::unmapWindow() {
|
||||
}
|
||||
}
|
||||
|
||||
if (candidate && PMONITOR && PMONITOR->m_activeSpecialWorkspace && candidate->m_workspace != PMONITOR->m_activeSpecialWorkspace)
|
||||
candidate = nullptr;
|
||||
|
||||
Log::logger->log(Log::DEBUG, "On closed window, new focused candidate is {}", candidate);
|
||||
|
||||
if (candidate != Desktop::focusState()->window() && candidate) {
|
||||
@@ -2692,7 +2695,7 @@ void CWindow::unmapWindow() {
|
||||
Fullscreen::controller()->setFullscreenMode(candidate, CURRENT_WINDOW_FS_MODES.internal, std::nullopt, CURRENT_FS_LAYOUT_HANDLED);
|
||||
}
|
||||
|
||||
if (!candidate && m_workspace && m_workspace->getWindowCount() == 0)
|
||||
if (!candidate && m_workspace && (m_workspace->getWindowCount() == 0 || PMONITOR->m_activeSpecialWorkspace))
|
||||
g_pInputManager->refocus();
|
||||
|
||||
g_pInputManager->sendMotionEventsToFocused();
|
||||
|
||||
Reference in New Issue
Block a user