summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-07-30 18:40:50 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-07-30 18:40:50 +0000
commit7038a9eeaecf345fb1fe22b43853b78cbf6ac6f2 (patch)
tree1900edd67e123383b987ec25ebeb26b9fe46b2e4 /src/Fl_Text_Display.cxx
parent9456baab50e8937d9a843a362847d589958694f9 (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_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index aae33ad68..1565a4459 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Text_Display.cxx,v 1.12.2.22 2002/07/30 15:10:32 easysw Exp $"
+// "$Id: Fl_Text_Display.cxx,v 1.12.2.23 2002/07/30 18:40:50 easysw Exp $"
//
// Copyright 2001-2002 by Bill Spitzak and others.
// Original code Copyright Mark Edel. Permission to distribute under
@@ -1892,11 +1892,11 @@ int Fl_Text_Display::handle(int event) {
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_PUSH: {
@@ -1962,5 +1962,5 @@ int Fl_Text_Display::handle(int event) {
//
-// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.22 2002/07/30 15:10:32 easysw Exp $".
+// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.23 2002/07/30 18:40:50 easysw Exp $".
//