Fixed possible hang when setting visibility if external window sources e.g. Qt don't forward visibility notify events to us.
This commit is contained in:
parent
ae23cb39ba
commit
340ebfb272
@ -1003,7 +1003,7 @@ void WindowImplX11::setVisible(bool visible)
|
|||||||
|
|
||||||
// Before continuing, make sure the WM has
|
// Before continuing, make sure the WM has
|
||||||
// internally marked the window as viewable
|
// internally marked the window as viewable
|
||||||
while (!m_windowMapped)
|
while (!m_windowMapped && !m_isExternal)
|
||||||
processEvents();
|
processEvents();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1023,7 +1023,7 @@ void WindowImplX11::setVisible(bool visible)
|
|||||||
|
|
||||||
// Before continuing, make sure the WM has
|
// Before continuing, make sure the WM has
|
||||||
// internally marked the window as unviewable
|
// internally marked the window as unviewable
|
||||||
while (m_windowMapped)
|
while (m_windowMapped && !m_isExternal)
|
||||||
processEvents();
|
processEvents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user