When I open the Window Attributes (in WindowManager in X on linux) I am
unable to save any changes to the attributes in the resource database,
because the osg window does not have a class defined. The Window
Specification and Save buttons are greyed out.
For example, when running FlightGear, I want the window to always have
no title, so it opens full-screen without using the --full-screen
option, which would prevent other windows from moving above the osg window.
I am attaching a patch I made to fix this problem.
Thank you,
Stewart
> ---
> /usr/src/SVN/OpenSceneGraph/src/osgViewer/.svn/text-base/GraphicsWindowX11.cpp.svn-base
> Sat Aug 22 10:02:06 2009
> +++ GraphicsWindowX11.cpp Sat Aug 22 14:03:51 2009
> @@ -728,6 +728,12 @@
> }
>
>
> + // Give window a class so that user preferences can be saved in the
> resource database.
> + XClassHint clH;
> + clH.res_name = (char *)"OSG";
> + clH.res_class = (char *)"osgViewer";
> + XSetClassHint( _display, _window, &clH);
> +
> // This positions the window at _windowX, _windowY
> XSizeHints sh;
> sh.flags = 0;
>
> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org