mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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