From Tim Moore, "the GraphicsWindowX11 code was not correctly calling GraphicsContext::resized when the window was not mapped with the requested geometry."

This commit is contained in:
Robert Osfield
2008-11-24 10:16:03 +00:00
parent d7ba995370
commit ed918cf6be

View File

@@ -705,9 +705,10 @@ bool GraphicsWindowX11::createWindow()
// now update the window dimensions to account for any size changes made by the window manager,
XGetWindowAttributes( _display, _window, &watt );
if (_traits->width != watt.width && _traits->height != watt.height)
if (_traits->x != watt.x || _traits->y != watt.y
||_traits->width != watt.width || _traits->height != watt.height)
{
resized( _traits->x, _traits->y, _traits->width, _traits->height );
resized( watt.x, watt.y, watt.width, watt.height );
}
//osg::notify(osg::NOTICE)<<"After sync apply.x = "<<watt.x<<" watt.y="<<watt.y<<" width="<<watt.width<<" height="<<watt.height<<std::endl;