From Stewart Andreason, "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."
This commit is contained in:
Robert Osfield
2009-11-20 11:25:49 +00:00
parent c73e53297d
commit 57319d72af

View File

@@ -859,6 +859,12 @@ bool GraphicsWindowX11::createWindow()
}
// 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;