mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +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
|
// 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