guard parent in X11TransientFor

This commit is contained in:
vaxerski 2022-09-01 10:16:23 +02:00
parent 095185cfe7
commit f2d84a7e3a

View file

@ -232,6 +232,9 @@ CWindow* CWindow::X11TransientFor() {
PPARENT = g_pCompositor->getWindowFromSurface(PPARENT->m_uSurface.xwayland->parent->surface); PPARENT = g_pCompositor->getWindowFromSurface(PPARENT->m_uSurface.xwayland->parent->surface);
} }
if (!g_pCompositor->windowValidMapped(PPARENT))
return nullptr;
return PPARENT; return PPARENT;
} }