summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Input_.cxx1
-rw-r--r--src/Fl_Text_Display.cxx3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index fcb552513..be6448640 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -709,6 +709,7 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) {
return 1;
case FL_UNFOCUS:
+ if (active_r() && window()) window()->cursor(FL_CURSOR_DEFAULT);
if (mark_ == position_) {
if (!(damage()&FL_DAMAGE_EXPOSE)) {minimal_update(position_); erase_cursor_only = 1;}
} else //if (Fl::selection_owner() != this)
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index add984cad..a74149711 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -3218,8 +3218,9 @@ int Fl_Text_Display::handle(int event) {
if (Fl::event_dy()) return mVScrollBar->handle(event);
else return mHScrollBar->handle(event);
- case FL_FOCUS:
case FL_UNFOCUS:
+ if (active_r() && window()) window()->cursor(FL_CURSOR_DEFAULT);
+ case FL_FOCUS:
if (buffer()->selected()) redraw();
return 1;