From e612ffd2248bcacfc56bee45f277d110393c7171 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 23 Sep 2010 20:15:20 +1000 Subject: Fix for bug #3073481, in MouseLeave set ptMouseLast to (-1,-1) so will not send dwell start on timer. Send dwell end for mouse leave. --- src/Editor.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 504cf5446..762156c23 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5833,6 +5833,10 @@ void Editor::DwellEnd(bool mouseMoved) { void Editor::MouseLeave() { SetHotSpotRange(NULL); + if (!HaveMouseCapture()) { + ptMouseLast = Point(-1,-1); + DwellEnd(true); + } } static bool AllowVirtualSpace(int virtualSpaceOptions, bool rectangular) { @@ -6221,7 +6225,8 @@ void Editor::Tick() { } if ((dwellDelay < SC_TIME_FOREVER) && (ticksToDwell > 0) && - (!HaveMouseCapture())) { + (!HaveMouseCapture()) && + (ptMouseLast.y >= 0)) { ticksToDwell -= timer.tickSize; if (ticksToDwell <= 0) { dwelling = true; -- cgit v1.2.3