Author: manolo Date: 2011-02-11 04:24:16 -0800 (Fri, 11 Feb 2011) New Revision: 8412 Log: Fix STR #2559: go correctly fullscreen when several displays on X11
Modified: branches/branch-1.3/src/Fl_Window_fullscreen.cxx Modified: branches/branch-1.3/src/Fl_Window_fullscreen.cxx =================================================================== --- branches/branch-1.3/src/Fl_Window_fullscreen.cxx 2011-02-10 18:41:12 UTC (rev 8411) +++ branches/branch-1.3/src/Fl_Window_fullscreen.cxx 2011-02-11 12:24:16 UTC (rev 8412) @@ -66,7 +66,7 @@ //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 @@ 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 } _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
