core: avoid activating toplevel-less surfaces

ref #8609
This commit is contained in:
Vaxry 2024-12-18 15:01:03 +00:00
parent 49e5f9c428
commit 6378c8ed65

View file

@ -47,7 +47,7 @@ void CHyprXWaylandManager::activateSurface(SP<CWLSurfaceResource> pSurface, bool
} }
PWINDOW->m_pXWaylandSurface->activate(activate); 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); PWINDOW->m_pXDGSurface->toplevel->setActive(activate);
} }