[osg-submissions] fullscreen and windowed on gnome desktop
Cedric Pinson
mornifle at plopbyte.net
Thu Oct 4 09:59:44 PDT 2007
Hi
It's a patch to have fullscreen toggle working on gnome, it concerns
only X11 implementation.
the problem:
when i run osgviewer i can't go in windowed mode. When i want to go in
windowed mode the screen flash i see the viewport (only the gl viewport
not the window) to have the size of the window size asked by osg and the
frame after. It fails and rest in fullscreen. After some test i saw that
the problem was the MOTIF decoration setup. Metacity seems to not handle
correctly the window if there is no decoration.
answer:
The idea is to not use the MOTIF decoration setup, and to send an ICCM
fullscreen event when it's appropriate. It means if the window has the
size of the screen and the decoration wanted is false then we send the
fullscreen event, else we send the event to disable the fullscreen mode.
The problem of this method is you can't have a window in a windowed
mode without decoration. It's not a perfect solution.
I tested it with compositviewer and osgviewer and it works great. I know
that most of WM now use ICCM features so i hope it will not be a problem
on other WM. Some feedback will be appreciate on others windows manager.
Thanks to ldelgass at gmail.com for the piece of code.
Cheers
--
+33 (0) 6 63 20 03 56 Cedric Pinson mailto:mornifle at plopbyte.net http://www.plopbyte.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GraphicsWindowX11.cpp
Type: text/x-c++src
Size: 48402 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20071004/209573f2/attachment-0001.cpp
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GraphicsWindowX11
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20071004/209573f2/attachment.pot
More information about the osg-submissions
mailing list