DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2559
Version: 1.3-current
Currently, on X11, when you have multiple monitors and you fullscreen a
window, the window moves to the leftmost monitor instead of the current
one. This patch fixes that by making X11 use the same functionality as
everything else.
I'm not sure if 1.3 runs on anything other than windows, OSX and X11, so
I've kept the #else in the fullscreen function.
Link: http://www.fltk.org/str.php?L2559
Version: 1.3-current
Index: src/Fl_Window_fullscreen.cxx
===================================================================
--- src/Fl_Window_fullscreen.cxx (revision 8407)
+++ src/Fl_Window_fullscreen.cxx (working copy)
@@ -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-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs