From d0bffc4fa9fe4c56ed793129882e9a1327b8484b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 18 Dec 2024 15:01:03 +0000 Subject: [PATCH] core: avoid activating toplevel-less surfaces ref #8609 --- src/managers/XWaylandManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 5e5c6262e..ca31752dc 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -47,7 +47,7 @@ void CHyprXWaylandManager::activateSurface(SP pSurface, bool } PWINDOW->m_pXWaylandSurface->activate(activate); } - } else if (PWINDOW->m_pXDGSurface) + } else if (PWINDOW->m_pXDGSurface && PWINDOW->m_pXDGSurface->toplevel) PWINDOW->m_pXDGSurface->toplevel->setActive(activate); }