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:
binary1248 2016-08-21 14:01:24 +02:00 committed by Lukas Dürrenberger
parent ae23cb39ba
commit 340ebfb272

View File

@ -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();
}
}