From 7038a9eeaecf345fb1fe22b43853b78cbf6ac6f2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 30 Jul 2002 18:40:50 +0000 Subject: Send FL_LEAVE events before FL_ENTER events. Only change the cursor when the widget is activated. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input_.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Input_.cxx') diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index d270c8b07..4b338bb9b 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.18 2002/07/30 18:10:03 easysw Exp $" +// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.19 2002/07/30 18:40:50 easysw Exp $" // // Common input widget routines for the Fast Light Tool Kit (FLTK). // @@ -653,11 +653,11 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) { switch (event) { case FL_ENTER: - fl_cursor(FL_CURSOR_INSERT); + if (active_r()) fl_cursor(FL_CURSOR_INSERT); return 1; case FL_LEAVE: - fl_cursor(FL_CURSOR_DEFAULT); + if (active_r()) fl_cursor(FL_CURSOR_DEFAULT); return 1; case FL_FOCUS: @@ -848,5 +848,5 @@ Fl_Input_::~Fl_Input_() { } // -// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.18 2002/07/30 18:10:03 easysw Exp $". +// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.19 2002/07/30 18:40:50 easysw Exp $". // -- cgit v1.2.3