[osg-users] patch to add WMclass to osgViewer
robert.osfield at gmail.com
Fri Nov 20 03:27:24 PST 2009
Thanks Stewart, change now merged and submitted to svn/trunk. For
future submissions could you send the whole modified file as I find
this far more reliable than using patch, as patch can mess up.
On Sat, Aug 22, 2009 at 9:13 PM, S Andreason <sandreas41 at gmail.com> wrote:
> 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,
> 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-users at lists.openscenegraph.org
More information about the osg-users