Reverted part of revision r12294 that introduced threading related problems under X11 due to checking the _display
Display member variable assigned to the graphics thread from the main thread.
This commit is contained in:
@@ -1090,6 +1090,25 @@ void GraphicsWindowX11::swapBuffersImplementation()
|
||||
#endif
|
||||
glXSwapBuffers( _display, _window );
|
||||
#endif
|
||||
|
||||
|
||||
while( XPending(_display) )
|
||||
{
|
||||
XEvent ev;
|
||||
XNextEvent( _display, &ev );
|
||||
|
||||
switch( ev.type )
|
||||
{
|
||||
case ClientMessage:
|
||||
{
|
||||
if (static_cast<Atom>(ev.xclient.data.l[0]) == _deleteWindow)
|
||||
{
|
||||
OSG_INFO<<"DeleteWindow event received"<<std::endl;
|
||||
getEventQueue()->closeWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GraphicsWindowX11::checkEvents()
|
||||
@@ -1461,29 +1480,6 @@ void GraphicsWindowX11::checkEvents()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// process events of _display
|
||||
//
|
||||
while( XPending(_display) )
|
||||
{
|
||||
XEvent ev;
|
||||
XNextEvent( _display, &ev );
|
||||
|
||||
switch( ev.type )
|
||||
{
|
||||
case ClientMessage:
|
||||
{
|
||||
if (static_cast<Atom>(ev.xclient.data.l[0]) == _deleteWindow)
|
||||
{
|
||||
OSG_INFO<<"DeleteWindow event received"<<std::endl;
|
||||
getEventQueue()->closeWindow();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (destroyWindowRequested)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user