diff options
| author | Manolo Gouy <Manolo> | 2011-02-11 12:24:16 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-02-11 12:24:16 +0000 |
| commit | 1125cf5385496e616522a874dd212ac342f87fb9 (patch) | |
| tree | 64b9bc1a46f61bad8cf170a0cb9b6b3bca3110cc /src/Fl_Window_fullscreen.cxx | |
| parent | d36013aed9c2e5951fc710b5118ee767d0e1d651 (diff) | |
Fix STR #2559: go correctly fullscreen when several displays on X11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8412 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window_fullscreen.cxx')
| -rw-r--r-- | src/Fl_Window_fullscreen.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Window_fullscreen.cxx b/src/Fl_Window_fullscreen.cxx index fb30de941..90a2fc924 100644 --- a/src/Fl_Window_fullscreen.cxx +++ b/src/Fl_Window_fullscreen.cxx @@ -66,7 +66,7 @@ void Fl_Window::fullscreen() { //determine its thickness border(0); #endif -#if defined(__APPLE__) || defined(WIN32) +#if defined(__APPLE__) || defined(WIN32) || defined(USE_X11) int sx, sy, sw, sh; Fl::screen_xywh(sx, sy, sw, sh, x()+w()/2, y()+h()/2); // if we are on the main screen, we will leave the system menu bar unobstructed @@ -77,7 +77,7 @@ void Fl_Window::fullscreen() { if (x()==sx) x(sx+1); // make sure that we actually execute the resize resize(sx, sy, sw, sh); #else - if (!x()) x(1); // force it to call XResizeWindow() + if (!x()) x(1); // make sure that we actually execute the resize resize(0,0,Fl::w(),Fl::h()); #endif } |
