summaryrefslogtreecommitdiff
path: root/desktop/treeview.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/treeview.c')
-rw-r--r--desktop/treeview.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index a33d7b4..1651ff5 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,