core: avoid activating toplevel-less surfaces

ref #8609
This commit is contained in:
Vaxry 2024-12-18 15:01:03 +00:00
parent 07a19e2c95
commit d0bffc4fa9

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);
} }