Changeset 10803

Show
Ignore:
Timestamp:
11/20/09 12:25:49 (5 years ago)
Author:
robert
Message:

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."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowX11.cpp

    r10735 r10803  
    860860 
    861861 
     862    // Give window a class so that user preferences can be saved in the resource database. 
     863    XClassHint clH; 
     864    clH.res_name = (char *)"OSG"; 
     865    clH.res_class = (char *)"osgViewer"; 
     866    XSetClassHint( _display, _window, &clH); 
     867 
    862868    // This positions the window at _windowX, _windowY 
    863869    XSizeHints sh;