From 2832714d4c9566597b4087e97cd372b76549fbe7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 19 Jan 1999 19:04:30 +0000 Subject: Fix from Bill - removed code that was sending extra events. git-svn-id: file:///fltk/svn/fltk/trunk@230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Fl.cxx b/src/Fl.cxx index 9224b4f4d..423481d7c 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.14 1999/01/07 19:17:15 mike Exp $" +// "$Id: Fl.cxx,v 1.15 1999/01/19 19:04:30 mike Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -413,8 +413,8 @@ int Fl::handle(int event, Fl_Window* window) case FL_MOVE: case FL_DRAG: // this should not happen if enter/leave events were reported - // correctly by the system, but just in case... - if (window != fl_xmousewin) handle(FL_ENTER, window); + // correctly by the system, but just in case: + fl_xmousewin = window; if (pushed()) { w = pushed(); event = FL_DRAG; @@ -450,9 +450,8 @@ int Fl::handle(int event, Fl_Window* window) case FL_KEYBOARD: // this should not happen if focus/unfocus events were reported - // correctly by the system, but just in case... - if (window != fl_xfocus) handle(FL_FOCUS, window); - + // correctly by the system, but just in case: + fl_xfocus = window; // Try it as keystroke, sending it to focus and all parents: for (w = grab() ? grab() : focus(); w; w = w->parent()) if (w->handle(FL_KEYBOARD)) return 1; @@ -667,5 +666,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.14 1999/01/07 19:17:15 mike Exp $". +// End of "$Id: Fl.cxx,v 1.15 1999/01/19 19:04:30 mike Exp $". // -- cgit v1.2.3