I would destroy the Fl_X object right away on the XDestroyWindow message. That would remove the need for this test. Then call the close event, then perhaps show the window again, like you are doing.
On 05/16/2011 10:28 AM, Manolo Gouy wrote: > > 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.4-feature > > > Attached file destroynotify.patch elaborates more fully my above > proposal: the window position is preserved, and the error message > disappears. > > This calls XQueryTree() as a means to check whether a Window pointer > is valid without triggering a BadWindow error. There may be a > better way to do it that I ignore. > > > Link: http://www.fltk.org/str.php?L2627 > Version: 1.4-feature > _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
