Hi J.P, Curious case of the X11 not sending a notify event on the full screen resize, with your mods to osgviewer I can see this occur, and with your mod to GraphicsWindowX11 the issue is fixed which is good. You approach seems workable and is now checked into svn/trunk.
Robert. On 13 January 2012 13:20, J.P. Delport <[email protected]> wrote: > Hi Robert, > > when switching from windowed mode to fullscreen (with the 'f' key) in X11, > no RESIZE event is generated. This confuses handlers that perform some > processing on the RESIZE event, e.g. the InteractiveImageHandler. > > To reproduce the problem I attach a minimally modified osgviewer that just > prints resize events. You can check what's printed in the console when you > go fullscreen and windowed a few times. > > The attached version of GraphicsWindowX11 fixes the problem for me, but I'm > not sure this is the right approach. Maybe you can see a fix for the problem > clearer. > > The only place where the RESIZE event is generated in GraphicsWindowX11 is > in CheckEvents and it then depends on the ConfigureNotify message. For some > reason, either ConfigureNotify is not sent when going fullscreen or the > traits already reflect the latest window size. > > regards > jp > > -- > This message is subject to the CSIR's copyright terms and conditions, e-mail > legal notice, and implemented Open Document Format (ODF) standard. The full > disclaimer details can be found at http://www.csir.co.za/disclaimer.html. > > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > > _______________________________________________ > 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
