DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2635
Version: 1.3-feature
The fl_xid() macro for Win32 is a lot more robust than on X11 in that it
handles the case where the Fl_Window has no Fl_X structure. On X11 it just
segfaults.
It would be nice to have the same feature on X11 as it simplifies the code
in many cases.
Link: http://www.fltk.org/str.php?L2635
Version: 1.3-feature
diff -up fltk-1.3.x-r8659/FL/x.H.xid fltk-1.3.x-r8659/FL/x.H
--- fltk-1.3.x-r8659/FL/x.H.xid 2011-05-18 15:22:39.369209030 +0200
+++ fltk-1.3.x-r8659/FL/x.H 2011-05-18 15:23:08.405567213 +0200
@@ -174,7 +174,7 @@ public:
extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid()
extern FL_EXPORT int fl_background_pixel; // hack into Fl_X::make_xid()
-inline Window fl_xid(const Fl_Window* w) { return Fl_X::i(w)->xid; }
+inline Window fl_xid(const Fl_Window* w) { Fl_X *temp = Fl_X::i(w); return
temp ? temp->xid : 0; }
#else
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev