Erik Hofman writes: > > Oliver C. wrote: > > > The Alt+Tab key kombination is also generally used for Window Manager/Desktop > > Environment specific things. > > KDE uses Alt+Tab for example to switch beween Applications, but you can't > > switch the Application from a fullscreen mode into a real Desktop Window mode > > with this key kombination. > > Ah, now I see what you mean. > This could be useful indeed.
I posted code todo this just the other day see http://baron.flightgear.org/pipermail/flightgear-devel/2004-April/026877.html Norman ----------------------------------------- cvs diff: Diffing . Index: gui_funcs.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/gui_funcs.cxx,v retrieving revision 1.16 diff -u -r1.16 gui_funcs.cxx --- a/gui_funcs.cxx 3 Feb 2004 19:34:23 -0000 1.16 +++ b/gui_funcs.cxx 4 Apr 2004 20:49:25 -0000 @@ -835,3 +835,22 @@ } } +void toggleFullScreen (puObject *) +{ + static int _saved_ww, _saved_wh; + static bool _fullscreen = 0; + + _fullscreen = !_fullscreen; + if (_fullscreen) + { + _saved_ww = (fgGetInt("/sim/startup/xsize")); + _saved_wh = (fgGetInt("/sim/startup/ysize")); + glutFullScreen(); + fgReshape( glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT) ); + } else + { + glutReshapeWindow(_saved_ww,_saved_wh); + fgReshape( _saved_ww, _saved_wh ); + } +} + Index: menubar.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/menubar.cxx,v retrieving revision 1.17 diff -u -r1.17 menubar.cxx --- a/menubar.cxx 3 Feb 2004 19:34:23 -0000 1.17 +++ b/menubar.cxx 4 Apr 2004 20:49:25 -0000 @@ -142,10 +142,20 @@ return true; } +extern void toggleFullScreen (puObject *); +static bool + do_fullscreen_dialog (const SGPropertyNode * arg) +{ + cout << "toggleFullScreen" << endl; + toggleFullScreen(0); + return true; +} + static struct { const char * name; SGCommandMgr::command_t command; } deprecated_dialogs [] = { + { "old-fullscreen-dialog", do_fullscreen_dialog }, { "old-save-dialog", do_save_dialog }, { "old-load-dialog", do_load_dialog }, { "old-reinit-dialog", do_reinit_dialog }, _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
