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
|
||||
// internally marked the window as viewable
|
||||
while (!m_windowMapped)
|
||||
while (!m_windowMapped && !m_isExternal)
|
||||
processEvents();
|
||||
}
|
||||
else
|
||||
@ -1023,7 +1023,7 @@ void WindowImplX11::setVisible(bool visible)
|
||||
|
||||
// Before continuing, make sure the WM has
|
||||
// internally marked the window as unviewable
|
||||
while (m_windowMapped)
|
||||
while (m_windowMapped && !m_isExternal)
|
||||
processEvents();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user