From b344517f8a01708652b12ab2a881c90eaf191699 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Tue, 10 Sep 2019 14:49:31 +0200 Subject: improve text selection --- src/ui/tools/text-tool.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/ui/tools/text-tool.cpp') diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index 6b35990aa..ef21ffea7 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -494,13 +494,6 @@ bool TextTool::root_handler(GdkEvent* event) { } break; case GDK_MOTION_NOTIFY: { - if (this->over_text) { - this->over_text = false; - // update cursor and statusbar: we are not over a text object now - this->cursor_shape = cursor_text_xpm; - this->sp_event_context_update_cursor(); - desktop->event_context->defaultMessageContext()->clear(); - } if (this->creating && (event->motion.state & GDK_BUTTON1_MASK) && !this->space_panning) { if ( this->within_tolerance && ( abs( (gint) event->motion.x - this->xp ) < this->tolerance ) @@ -599,6 +592,12 @@ bool TextTool::root_handler(GdkEvent* event) { _("Click to edit the flowed text, drag to select part of the text.")); } this->over_text = true; + } else { + this->over_text = false; + // update cursor and statusbar: we are not over a text object now + this->cursor_shape = cursor_text_xpm; + this->sp_event_context_update_cursor(); + desktop->event_context->defaultMessageContext()->clear(); } return TRUE; } break; -- cgit v1.2.3