aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-23 18:25:33 +0200
committervaxerski <[email protected]>2022-08-23 18:25:33 +0200
commit0a9ac4703019298787de6ff20b228f5f3e2f3bdc (patch)
treeca8a123aa7fa42955e1359f6653580e0300ed847
parente2450247c0ca58b8ebc510074bcb11df8c6072e7 (diff)
downloadHyprland-0a9ac4703019298787de6ff20b228f5f3e2f3bdc.tar.gz
Hyprland-0a9ac4703019298787de6ff20b228f5f3e2f3bdc.zip
remove unintuitive candidate behavior
-rw-r--r--src/events/Windows.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 01df7fde..5d45eec0 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -394,9 +394,6 @@ void Events::listener_unmapWindow(void* owner, void* data) {
if (PWORKSPACE->m_bHasFullscreenWindow && !PWINDOWCANDIDATE->m_bCreatedOverFullscreen && !PWINDOW->m_bIsFloating)
PWINDOWCANDIDATE = g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID);
- if (!PWINDOWCANDIDATE)
- PWINDOWCANDIDATE = g_pCompositor->getFirstWindowOnWorkspace(PWINDOW->m_iWorkspaceID);
-
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)
PWINDOWCANDIDATE = nullptr;