Removed fltk bug fix that does not apply to newer fltk versions

It appears the underlying bug has been fixed.
This commit is contained in:
Bill Spitzak
2015-10-03 11:39:00 -07:00
parent d14aad2e54
commit 7dbb304393

View File

@ -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 // The destructor is called on DestroyNotify, so I don't have to do anything
// to the contained window, which is already been destroyed. // 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, // fltk bug: it does not clear these pointers when window is deleted,
// causing flwm to crash on window close sometimes: // causing flwm to crash on window close sometimes:
extern Fl_Window *fl_xfocus; extern Fl_Window *fl_xfocus;
extern Fl_Window *fl_xmousewin; extern Fl_Window *fl_xmousewin;
#endif
Frame::~Frame() { Frame::~Frame() {
@ -452,7 +454,7 @@ Frame::~Frame() {
// a legal state value to this location: // a legal state value to this location:
state_ = UNMAPPED; state_ = UNMAPPED;
#if FL_MAJOR_VERSION < 2 #if FL_MAJOR_VERSION < 2 && FL_MINOR_VERSION < 3
// fix fltk bug: // fix fltk bug:
fl_xfocus = 0; fl_xfocus = 0;
fl_xmousewin = 0; fl_xmousewin = 0;