From 5ecf5cde986ddfff540e33008bdc4d0803ba56a7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 12 Aug 2002 20:45:28 +0000 Subject: Fix modal() handling of FL_RELEASE events. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Fl.cxx b/src/Fl.cxx index d8c2a749e..99d6f041c 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -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 $". // -- cgit v1.2.3