Author: manolo
Date: 2012-05-14 10:01:11 -0700 (Mon, 14 May 2012)
New Revision: 9490
Log:
Fixed subwindow creation for group-relative coordinates under X11
Modified:
branches/branch-3.0/src/fltk3/x11.cxx
Modified: branches/branch-3.0/src/fltk3/x11.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/x11.cxx 2012-05-14 14:42:16 UTC (rev
9489)
+++ branches/branch-3.0/src/fltk3/x11.cxx 2012-05-14 17:01:11 UTC (rev
9490)
@@ -1795,6 +1795,10 @@
int X = win->x();
int Y = win->y();
+ if (win->parent()) {
+ X += win->parent()->dx_window();
+ Y += win->parent()->dy_window();
+ }
int W = win->w();
if (W <= 0) W = 1; // X don't like zero...
int H = win->h();
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit