diff options
Diffstat (limited to 'src/Fl_Window_fullscreen.cxx')
| -rw-r--r-- | src/Fl_Window_fullscreen.cxx | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/src/Fl_Window_fullscreen.cxx b/src/Fl_Window_fullscreen.cxx index e005302cc..71695c806 100644 --- a/src/Fl_Window_fullscreen.cxx +++ b/src/Fl_Window_fullscreen.cxx @@ -16,23 +16,9 @@ // http://www.fltk.org/str.php // -// Turning the border on/off by changing the motif_wm_hints property -// works on Irix 4DWM. Does not appear to work for any other window -// manager. Fullscreen still works on some window managers (fvwm is one) -// because they allow the border to be placed off-screen. - -// Unfortunately most X window managers ignore changes to the border -// and refuse to position the border off-screen, so attempting to make -// the window full screen will lose the size of the border off the -// bottom and right. - -#include <FL/Fl.H> -#include <FL/x.H> +#include <FL/Fl_Window.H> #include <FL/Fl_Window_Driver.H> -#include <config.h> - - void Fl_Window::border(int b) { if (b) { if (border()) return; @@ -41,18 +27,7 @@ void Fl_Window::border(int b) { if (!border()) return; set_flag(NOBORDER); } -#if defined(USE_X11) - if (shown()) Fl_X::i(this)->sendxjunk(); -#elif defined(WIN32) - // not yet implemented, but it's possible - // for full fullscreen we have to make the window topmost as well -#elif defined(__APPLE_QUARTZ__) // PORTME: Fl_Window_Driver - platform window driver - // warning: not implemented in Quartz/Carbon -#elif defined(FL_PORTING) -# pragma message "handle window border setting" -#else -# error unsupported platform -#endif + pWindowDriver->use_border(); } /* Note: The previous implementation toggled border(). With this new @@ -109,7 +84,6 @@ void Fl_Window::fullscreen_screens(int top, int bottom, int left, int right) { pWindowDriver->fullscreen_on(); } - // // End of "$Id$". // |
