From 6378c8ed65522adc432c0780eab296f7b92db183 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 18 Dec 2024 15:01:03 +0000 Subject: 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 5e5c6262..ca31752d 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); } -- cgit v1.2.3