DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2627
Version: 1.3-feature
Upon receiving DestroyNotify, FLTK does nothing now. The application
still thinks the window exists.
Attached patch deals with this by raising an FL_CLOSE event.
Link: http://www.fltk.org/str.php?L2627
Version: 1.3-feature
close window not only on WM_DELETE_WINDOW
but also no DestroyNotify
Index: fltk-1.3.x-r8365/src/Fl_x.cxx
===================================================================
--- fltk-1.3.x-r8365.orig/src/Fl_x.cxx 2011-02-09 12:44:55.000000000 +0100
+++ fltk-1.3.x-r8365/src/Fl_x.cxx 2011-02-09 12:46:38.000000000 +0100
@@ -1063,6 +1063,9 @@
if (window) switch (xevent.type) {
+ case DestroyNotify:
+ event = FL_CLOSE;
+ break;
case ClientMessage: {
Atom message = fl_xevent->xclient.message_type;
const long* data = fl_xevent->xclient.data.l;
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev