diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-09-27 17:47:34 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-09-27 17:47:34 +0100 |
commit | 8f0f44e3d10a29dc29a46ba6c5f938616241c5fb (patch) | |
tree | b6d9bcd5dbbe579108ca5954370eec8d5effc5ad /desktop | |
parent | d2534e0e74dc3bd9122263fd6e59cd3b185ffbb2 (diff) | |
download | netsurf-8f0f44e3d10a29dc29a46ba6c5f938616241c5fb.tar.gz netsurf-8f0f44e3d10a29dc29a46ba6c5f938616241c5fb.tar.bz2 |
Treeview: Ignore mouse leaving the treeview window.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/treeview.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c index a33d7b474..1651ff5ef 100644 --- a/desktop/treeview.c +++ b/desktop/treeview.c @@ -4582,6 +4582,11 @@ treeview_mouse_action(treeview *tree, browser_mouse_state mouse, int x, int y) assert(tree != NULL); assert(tree->root != NULL); + /* Not interested in whether mouse leaves window. */ + if (mouse == BROWSER_MOUSE_LEAVE) { + return; + } + /* Handle mouse drag captured by textarea */ if (tree->drag.type == TV_DRAG_TEXTAREA) { textarea_mouse_action(tree->edit.textarea, mouse, |