mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-11 18:21:54 -07:00
guard parent in X11TransientFor
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user