Author: manolo
Date: 2012-05-14 10:13:20 -0700 (Mon, 14 May 2012)
New Revision: 9491
Log:
Fixed menu creation for group-relative coordinates under X11

Modified:
   branches/branch-3.0/src/fltk3/Menu.cxx

Modified: branches/branch-3.0/src/fltk3/Menu.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/Menu.cxx      2012-05-14 17:01:11 UTC (rev 
9490)
+++ branches/branch-3.0/src/fltk3/Menu.cxx      2012-05-14 17:13:20 UTC (rev 
9491)
@@ -824,8 +824,8 @@
   button = pbutton;
   if (pbutton && pbutton->window()) {
     for (fltk3::Window* w = pbutton->window(); w; w = w->window()) {
-      X += w->x();
-      Y += w->y();
+      X += w->dx_window();
+      Y += w->dy_window();
     }
   } else {
     X += fltk3::event_x_root()-fltk3::event_x();

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

Reply via email to