Thanks Tim, fix merged and submitted to svn/trunk.
On Mon, Nov 24, 2008 at 7:44 AM, Tim Moore <[EMAIL PROTECTED]> wrote:
> Hello,
> the GraphicsWindowX11 code was not correctly calling
> GraphicsContext::resized when the window was not mapped with the requested
> geometry.
>
> Tim
>
> >From 540cbd3b8f0cd759dad685a596cf294822591a62 Mon Sep 17 00:00:00 2001
> From: Tim Moore <[EMAIL PROTECTED]>
> Date: Mon, 24 Nov 2008 08:37:11 +0100
> Subject: [PATCH] Correctly get actual window geometry after the window is
> opened.
>
> ---
> src/osgViewer/GraphicsWindowX11.cpp | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/osgViewer/GraphicsWindowX11.cpp
> b/src/osgViewer/GraphicsWindowX11.cpp
> index 9fc57d7..27b89b7 100644
> --- a/src/osgViewer/GraphicsWindowX11.cpp
> +++ b/src/osgViewer/GraphicsWindowX11.cpp
> @@ -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;
> --
> 1.5.6.5
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org