summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-01-19 19:04:30 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-01-19 19:04:30 +0000
commit2832714d4c9566597b4087e97cd372b76549fbe7 (patch)
tree94617045c5e55faf7e5b1f6168f5dedbaa46db70
parent514737e6a092a1d40371b29ef229679afcbade0e (diff)
Fix from Bill - removed code that was sending extra events.
git-svn-id: file:///fltk/svn/fltk/trunk@230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl.cxx13
1 files changed, 6 insertions, 7 deletions
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 $".
//