Display the moving insertion point when doing drag&drop to an Fl_Text_Display widget from the widget itself.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
d879e4b2e8
commit
0c6ad247dd
@ -3468,12 +3468,14 @@ void Fl_Text_Display::draw(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// draw the text cursor
|
// draw the text cursor
|
||||||
|
int start, end;
|
||||||
|
int has_selection = buffer()->selection_position(&start, &end);
|
||||||
if (damage() & (FL_DAMAGE_ALL | FL_DAMAGE_SCROLL | FL_DAMAGE_EXPOSE)
|
if (damage() & (FL_DAMAGE_ALL | FL_DAMAGE_SCROLL | FL_DAMAGE_EXPOSE)
|
||||||
&& (
|
&& (
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
Fl::marked_text_length() ||
|
Fl::marked_text_length() ||
|
||||||
#endif
|
#endif
|
||||||
!buffer()->primary_selection()->selected()) &&
|
!has_selection || mCursorPos < start || mCursorPos > end) &&
|
||||||
mCursorOn && Fl::focus() == (Fl_Widget*)this ) {
|
mCursorOn && Fl::focus() == (Fl_Widget*)this ) {
|
||||||
fl_push_clip(text_area.x-LEFT_MARGIN,
|
fl_push_clip(text_area.x-LEFT_MARGIN,
|
||||||
text_area.y,
|
text_area.y,
|
||||||
|
Loading…
Reference in New Issue
Block a user