diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2004-12-03 03:14:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2004-12-03 03:14:17 +0000 |
| commit | b5562132e5471c9ed3f714a12f8976d229e5ce0b (patch) | |
| tree | 3ca615fe97afdfc038d57ad8be886a47c1a5f968 /src/Fl_Group.cxx | |
| parent | 416ff7f24ef0f2c1b9f3d1118366a0d33124ac1a (diff) | |
Fl::event_number() didn't always match the value sent to the
handle() method (STR #634)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Group.cxx')
| -rw-r--r-- | src/Fl_Group.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index 522ff0da3..a3680a678 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Group.cxx,v 1.8.2.8.2.25 2004/10/18 20:22:22 easysw Exp $" +// "$Id: Fl_Group.cxx,v 1.8.2.8.2.26 2004/12/03 03:14:16 easysw Exp $" // // Group widget for the Fast Light Tool Kit (FLTK). // @@ -227,7 +227,9 @@ int Fl_Group::handle(int event) { o = *a++; if (event == FL_HIDE && o == Fl::focus()) { // Give up input focus... - o->handle(FL_UNFOCUS); + int old_event = Fl::e_number; + o->handle(Fl::e_number = FL_UNFOCUS); + Fl::e_number = old_event; Fl::focus(0); } if (o->visible()) o->handle(event); @@ -591,5 +593,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& widget) const { } // -// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.25 2004/10/18 20:22:22 easysw Exp $". +// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.26 2004/12/03 03:14:16 easysw Exp $". // |
