Hi,
OSG currently only allows to set the name of a specific window
(GraphicsWindowX11::setWindowName), but it hard-codes the X11
application name to "osgViewer". On GNOME3 desktops this results in the
main status bar always displaying "osgViewer" whenever any window of an
OSG-based application is active. Obviously I would like to set and see
the actual name of my own application instead.
You can see a screen shot of the issue in the bug report here:
http://code.google.com/p/flightgear-bugs/issues/detail?id=554
The name originates from GraphicsWindowX11.cpp:
// 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 also means that all OSG-based applications share the same user
preferences (whatever is saved there). Wouldn't it make sense to make
the name(s) configurable? At least the application name ("osgViewer"),
maybe also the class ("OSG")?
Note that there is a difference between the application name and the
name of a specific window. The latter is shown in the title bar of the
specific window itself (I guess every platform/window manager does
that). But prior to GNOME3 I wasn't aware of places where the actual
application name, which is shared by all windows of a single
application, was displayed. But this name is certainly displayed most
prominently on latest GNOME desktops.
Oh, and have happy New Year!
Thorsten
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org