From 340ebfb2724d05750ad074ea4b6e3e8d9df7946a Mon Sep 17 00:00:00 2001 From: binary1248 Date: Sun, 21 Aug 2016 14:01:24 +0200 Subject: [PATCH] Fixed possible hang when setting visibility if external window sources e.g. Qt don't forward visibility notify events to us. --- src/SFML/Window/Unix/WindowImplX11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index 5fe6eb16..9e7fca76 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -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(); } }