-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jolley, Thomas P wrote: > The last time I looked at setting window decorations each window manager > has its own special way of doing this. Your code will need to find out > what the window manager is and then set the appropriate structure. Look > at Producer/src/RenderSurface_X11.cpp, or whatever osg is currently > using to create X11 windows, and search for MOTIF. This should show you > what you need to do. The Producer/osg default way of setting > decorations works with KDE and GNOME. Apparently fvwm95 is different. > I doubt any other osg user has tried to turn off decorations under > fvwm95.
Nope, this isn't the case for a long time anymore. There are standardized X11 flags for this defined in the Freedesktop standard on extended window manager hints. Whether or not the window managers obey them is another story - these are only *hints* - i.e. the window manager and the user are allowed to override them. Furthermore, some WMs are simply buggy or do not implement these, but all of the major ones do. The relevant standard together with the list of the most common WMs and their compliance is here: http://ww.freedesktop.org/wiki/Specifications_2fwm_2dspec In particular, you need this file: http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html And this is the hint you are looking for (_NET_WM_STATE_FULLSCREEN): http://standards.freedesktop.org/wm-spec/1.3/ar01s05.html#id2522991 However, what you *definitely* should not try to detect which WM is running and hardwire some sorts of hacks for each. There is no standard and X11-sanctioned way of doing this, only OS-specific hacks which will break on different systems. Moreover, how do you deal with your application being run remotely over network, for example? This is a perfectly valid scenario when using X. Such approach is definitely un-scalable (there are hundreds of WMs in existence) and will inevitably break in some cases. Code for the standard (90% of Linux users are running Gnome or KDE which are compliant) and if the user is running a particular WM, well, he can always switch to another one which is not buggy. Regards, Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFGHUnmn11XseNj94gRAl97AKDsB4+4/Wv0Tq355ejDHZLwFdd+ugCfXPsI lftxrh9C7HcUjWBtF85kgZk= =u0ay -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/