Fix modal() handling of FL_RELEASE events.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2002-08-12 20:45:28 +00:00
parent c6b1b2c7b6
commit 5ecf5cde98
2 changed files with 7 additions and 4 deletions
+3
View File
@@ -1,6 +1,9 @@
CHANGES IN FLTK 1.1.0rc6
- Documentation updates.
- Fl::handle() didn't apply the modal tests for
FL_RELEASE events, which caused Fl_Tabs to allow users
to change tabs even when a modal window was open.
- Fl_Input_ now draws the box function to erase the
background. This fixes redraw problems noticed with
the plastic scheme.
+4 -4
View File
@@ -1,5 +1,5 @@
//
// "$Id: Fl.cxx,v 1.24.2.41.2.45 2002/08/12 19:30:44 easysw Exp $"
// "$Id: Fl.cxx,v 1.24.2.41.2.46 2002/08/12 20:45:28 easysw Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@@ -617,8 +617,8 @@ int Fl::handle(int e, Fl_Window* window)
if (pushed()) {
wi = pushed();
pushed_ = 0; // must be zero before callback is done!
}
if (grab()) wi = grab();
} else if (grab()) wi = grab();
else if (modal() && wi != modal()) return 0;
int r = send(e, wi, window);
fl_fix_focus();
return r;}
@@ -949,5 +949,5 @@ void Fl_Window::flush() {
}
//
// End of "$Id: Fl.cxx,v 1.24.2.41.2.45 2002/08/12 19:30:44 easysw Exp $".
// End of "$Id: Fl.cxx,v 1.24.2.41.2.46 2002/08/12 20:45:28 easysw Exp $".
//