Hello everyone,
I have a problem to integrate a SFML renderwindow inside a Qt widget, since the new SFML 2.4 is released.
The problem happens only on my linux (on windows everything's fine).
My config :
- Ubuntu 16.04
- Qt 5.7.0
- gcc 6.1.1 (tried with 5.3 and 4.9)
- SFML 2.4 from github up to date
It seems that sf::RenderWindow::create(winId()); "create" an infinite loop...
The result is a Qt widget with a transparent inside...
Looking a bit more inside the SFML code, it appears that it comes from the lines 927 and 928 of the file src/SFML/Window/Unix/WindowImplX11.cpp in the function setVisible(bool visible):
void WindowImplX11::setVisible(bool visible)
{
if (visible)
{
.........
.........
// Before continuing, make sure the WM has
// internally marked the window as viewable
while (!m_windowMapped)
processEvents();
}
Removing this while loop solves the problem.
I put in attachments a simplest code reproducing the bug.
If you've any idea of what's going on, please let me now.
Cheers,
daijin12