diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-30 18:40:50 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-30 18:40:50 +0000 |
| commit | 7038a9eeaecf345fb1fe22b43853b78cbf6ac6f2 (patch) | |
| tree | 1900edd67e123383b987ec25ebeb26b9fe46b2e4 /src/Fl_File_Input.cxx | |
| parent | 9456baab50e8937d9a843a362847d589958694f9 (diff) | |
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
Diffstat (limited to 'src/Fl_File_Input.cxx')
| -rw-r--r-- | src/Fl_File_Input.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Fl_File_Input.cxx b/src/Fl_File_Input.cxx index c80265227..303e19424 100644 --- a/src/Fl_File_Input.cxx +++ b/src/Fl_File_Input.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_File_Input.cxx,v 1.1.2.4 2002/07/30 18:10:03 easysw Exp $" +// "$Id: Fl_File_Input.cxx,v 1.1.2.5 2002/07/30 18:40:50 easysw Exp $" // // File_Input header file for the Fast Light Tool Kit (FLTK). // @@ -183,8 +183,10 @@ Fl_File_Input::handle(int event) // I - Event switch (event) { case FL_MOVE : case FL_ENTER : - if (Fl::event_y() < (y() + DIR_HEIGHT)) fl_cursor(FL_CURSOR_DEFAULT); - else fl_cursor(FL_CURSOR_INSERT); + if (active_r()) { + if (Fl::event_y() < (y() + DIR_HEIGHT)) fl_cursor(FL_CURSOR_DEFAULT); + else fl_cursor(FL_CURSOR_INSERT); + } return 1; @@ -268,5 +270,5 @@ Fl_File_Input::handle_button(int event) // I - Event // -// End of "$Id: Fl_File_Input.cxx,v 1.1.2.4 2002/07/30 18:10:03 easysw Exp $". +// End of "$Id: Fl_File_Input.cxx,v 1.1.2.5 2002/07/30 18:40:50 easysw Exp $". // |
