DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2779
Version: 1.3.0


Fl_x.cxx:1861 (from 1.3 release) goes

w->flags() & Fl_Widget::FORCE_POSITION

The enum is protected, which causes an error using clang:

Fl_x.cxx:1861:31: error: 'FORCE_POSITION' is a protected member of
'Fl_Widget'
  if (w->flags() & Fl_Widget::FORCE_POSITION) {
                              ^
../FL/Fl_Widget.H:168:9: note: declared protected here
        FORCE_POSITION  = 1<<4,   ///< don't let the window manager
position the window (Fl_Window)
        ^


The attached patch fixes the problem.


Link: http://www.fltk.org/str.php?L2779
Version: 1.3.0
--- src/Fl_x.cxx.orig   2011-11-28 10:52:26.000000000 +0100
+++ src/Fl_x.cxx        2011-11-28 11:01:42.000000000 +0100
@@ -1858,7 +1858,7 @@
     prop[1] = 1|2|16; // MWM_FUNC_ALL | MWM_FUNC_RESIZE | MWM_FUNC_MAXIMIZE
   }
 
-  if (w->flags() & Fl_Widget::FORCE_POSITION) {
+  if (w->force_position()) {
     hints->flags |= USPosition;
     hints->x = w->x();
     hints->y = w->y();
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to