Make treeview test parasite sit on mouse input too.

This commit is contained in:
Michael Drake 2013-05-31 13:26:14 +01:00
parent cf57827187
commit a669a7d12c

View File

@ -243,6 +243,12 @@ static void treeview_test_redraw(struct tree *tree, int x, int y,
global_history_redraw(x, y, &clip, ctx);
}
static void treeview_test_mouse_action(struct tree *tree,
browser_mouse_state mouse, int x, int y)
{
global_history_mouse_action(mouse, x, y);
}
@ -2495,6 +2501,11 @@ bool tree_mouse_action(struct tree *tree, browser_mouse_state mouse, int x,
assert(tree != NULL);
assert(tree->root != NULL);
if (tree->flags == TREE_MOVABLE) {
treeview_test_mouse_action(tree, mouse, x, y);
return true;
}
if (tree->root->child == NULL)
return true;