aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-23 23:09:28 +0200
committervaxerski <[email protected]>2022-08-23 23:09:28 +0200
commitfd70a9184bf9ae26b5cd831620a46dc039dad5d8 (patch)
treee7103df632021077328808b5f158c06d0b86396a
parent0a9ac4703019298787de6ff20b228f5f3e2f3bdc (diff)
downloadHyprland-fd70a9184bf9ae26b5cd831620a46dc039dad5d8.tar.gz
Hyprland-fd70a9184bf9ae26b5cd831620a46dc039dad5d8.zip
fix logic in fullscreen close candidates
-rw-r--r--src/events/Windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 5d45eec0..e58e5aff 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -391,7 +391,7 @@ void Events::listener_unmapWindow(void* owner, void* data) {
// refocus on a new window
auto PWINDOWCANDIDATE = g_pCompositor->vectorToWindowIdeal(PWINDOW->m_vRealPosition.goalv() + PWINDOW->m_vRealSize.goalv() / 2.f);
- if (PWORKSPACE->m_bHasFullscreenWindow && !PWINDOWCANDIDATE->m_bCreatedOverFullscreen && !PWINDOW->m_bIsFloating)
+ if (PWORKSPACE->m_bHasFullscreenWindow && (!PWINDOWCANDIDATE->m_bCreatedOverFullscreen || !PWINDOW->m_bIsFloating))
PWINDOWCANDIDATE = g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID);
if (!PWINDOWCANDIDATE || PWINDOW == PWINDOWCANDIDATE || !PWINDOWCANDIDATE->m_bIsMapped || PWINDOWCANDIDATE->m_bHidden || PWINDOWCANDIDATE->m_bX11ShouldntFocus || PWINDOWCANDIDATE->m_iX11Type == 2 || PWINDOWCANDIDATE->m_iMonitorID != g_pCompositor->m_pLastMonitor->ID)