aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-28 20:33:29 +0200
committerVaxry <[email protected]>2024-08-28 20:33:38 +0200
commit9642311ac2ffa6605d84fef2bb5179f6588ae074 (patch)
tree57b34aa23d1c529b04e824663524843d1aee2fe6
parent98e99cd03df5b4421f72f2a3f2d7de53f8261f1f (diff)
downloadHyprland-9642311ac2ffa6605d84fef2bb5179f6588ae074.tar.gz
Hyprland-9642311ac2ffa6605d84fef2bb5179f6588ae074.zip
window: don't focus on activate if window isn't mapped yet
ref #7089
-rw-r--r--src/desktop/Window.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 582e96a0..7da616c1 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -1307,6 +1307,11 @@ void CWindow::activate(bool force) {
if (!force && (!m_sWindowData.focusOnActivate.valueOr(*PFOCUSONACTIVATE) || (m_eSuppressedEvents & SUPPRESS_ACTIVATE_FOCUSONLY) || (m_eSuppressedEvents & SUPPRESS_ACTIVATE)))
return;
+ if (!m_bIsMapped) {
+ Debug::log(LOG, "Ignoring CWindow::activate focus/warp, window is not mapped yet.");
+ return;
+ }
+
if (m_bIsFloating)
g_pCompositor->changeWindowZOrder(m_pSelf.lock(), true);