From 1125cf5385496e616522a874dd212ac342f87fb9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 11 Feb 2011 12:24:16 +0000 Subject: 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 --- src/Fl_Window_fullscreen.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 } -- cgit v1.2.3