diff --git a/Frame.C b/Frame.C index c3275c8..b698860 100644 --- a/Frame.C +++ b/Frame.C @@ -437,10 +437,12 @@ int Frame::force_y_onscreen(int Y, int H) { // The destructor is called on DestroyNotify, so I don't have to do anything // to the contained window, which is already been destroyed. +#if FL_MAJOR_VERSION < 2 && FL_MINOR_VERSION < 3 // fltk bug: it does not clear these pointers when window is deleted, // causing flwm to crash on window close sometimes: extern Fl_Window *fl_xfocus; extern Fl_Window *fl_xmousewin; +#endif Frame::~Frame() { @@ -452,7 +454,7 @@ Frame::~Frame() { // a legal state value to this location: state_ = UNMAPPED; -#if FL_MAJOR_VERSION < 2 +#if FL_MAJOR_VERSION < 2 && FL_MINOR_VERSION < 3 // fix fltk bug: fl_xfocus = 0; fl_xmousewin = 0;