Author: spitzak
Date: 2007-06-08 14:16:22 -0400 (Fri, 08 Jun 2007)
New Revision: 5893
Log:
Made sure Monitor::all().work does not go over the menubar.


Modified:
   trunk/src/osx/run.cxx

Modified: trunk/src/osx/run.cxx
===================================================================
--- trunk/src/osx/run.cxx       2007-06-08 18:15:37 UTC (rev 5892)
+++ trunk/src/osx/run.cxx       2007-06-08 18:16:22 UTC (rev 5893)
@@ -1015,7 +1015,10 @@
     monitor = list[0];
     for (int i=1; i < count; i++) {
       monitor.merge(list[i]);
+      // always keep the menubar off the first window out of work area!
+      int oldy = monitor.work.y();
       monitor.work.merge(list[i].work);
+      monitor.work.set_y(oldy);
     }
   }
   return monitor;

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

Reply via email to