mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:29:48 +01:00
guard parent in X11TransientFor
This commit is contained in:
parent
f77fac9df9
commit
095185cfe7
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ CWindow* CWindow::X11TransientFor() {
|
|||
|
||||
auto PPARENT = g_pCompositor->getWindowFromSurface(m_uSurface.xwayland->parent->surface);
|
||||
|
||||
while (PPARENT->m_uSurface.xwayland->parent) {
|
||||
while (g_pCompositor->windowValidMapped(PPARENT) && PPARENT->m_uSurface.xwayland->parent) {
|
||||
PPARENT = g_pCompositor->getWindowFromSurface(PPARENT->m_uSurface.xwayland->parent->surface);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue