summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-10-30 09:23:03 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-10-30 09:23:03 +0000
commitf2c834ac515dc348ec142c579766e176ae379162 (patch)
tree6e68676b926c4bef87fc7248ef399d0802d2fca9
parentd250c43e4fdb8dd044ab793ce37f60f23d532f46 (diff)
downloadnetsurf-f2c834ac515dc348ec142c579766e176ae379162.tar.gz
netsurf-f2c834ac515dc348ec142c579766e176ae379162.tar.bz2
Only set TREE_MOVE_DRAG is the tree is TREE_MOVABLE
svn path=/trunk/netsurf/; revision=10919
-rw-r--r--desktop/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index 566781ef7..f90b91033 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -2165,7 +2165,8 @@ bool tree_mouse_action(struct tree *tree, browser_mouse_state mouse, int x,
tree_handle_node_element_changed(tree, &node->data);
}
- tree->drag = TREE_MOVE_DRAG;
+ if (tree->flags & TREE_MOVABLE)
+ tree->drag = TREE_MOVE_DRAG;
return true;
}