Author: manolo
Date: 2011-10-18 05:18:22 -0700 (Tue, 18 Oct 2011)
New Revision: 9135
Log:
Simplified window positioning on main screen.

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-10-18 11:46:29 UTC (rev 9134)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-10-18 12:18:22 UTC (rev 9135)
@@ -1976,7 +1976,6 @@
  */
 void Fl_X::make(Fl_Window* w)
 {
-  static int xyPos = 100;
   if ( w->parent() ) {         // create a subwindow
     Fl_Group::current(0);
     // our subwindow needs this structure to know about its clipping. 
@@ -2061,13 +2060,7 @@
       wp += 2*bx;
       hp += 2*by+bt;
     }
-    if (!(w->flags() & Fl_Window::FORCE_POSITION)) {
-      // default window positioning on the main screen
-      w->x(xyPos+Fl::x());
-      w->y(xyPos+Fl::y());
-      xyPos += 25;
-      if (xyPos>200) xyPos = 100;
-    } else {
+    if (w->flags() & Fl_Window::FORCE_POSITION) {
       if (!Fl::grab()) {
         xp = xwm; yp = ywm;
         w->x(xp);w->y(yp);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to