mirror of
https://git.code.sf.net/p/flwm/flwm
synced 2025-12-11 23:06:56 -05:00
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:
4
Frame.C
4
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;
|
||||
|
||||
Reference in New Issue
Block a user