summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Input.cxx4
-rw-r--r--src/Fl_Text_Editor.cxx3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx
index 30a198d0d..ffd8bf230 100644
--- a/src/Fl_Input.cxx
+++ b/src/Fl_Input.cxx
@@ -350,8 +350,8 @@ int Fl_Input::handle(int event) {
position(position());
return (1);
} else {
- if (active_r() && window()) window()->cursor(FL_CURSOR_NONE);
-
+ if (active_r() && window() && this == Fl::belowmouse())
+ window()->cursor(FL_CURSOR_NONE);
return handle_key();
}
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx
index 745490e0f..c26532906 100644
--- a/src/Fl_Text_Editor.cxx
+++ b/src/Fl_Text_Editor.cxx
@@ -447,7 +447,8 @@ int Fl_Text_Editor::handle(int event) {
return 1;
case FL_KEYBOARD:
- if (active_r() && window()) window()->cursor(FL_CURSOR_NONE);
+ if (active_r() && window() && this == Fl::belowmouse())
+ window()->cursor(FL_CURSOR_NONE);
return handle_key();
case FL_PASTE: