diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-31 13:26:14 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-31 13:26:14 +0100 |
commit | a669a7d12ca5c70c1e3ba3813c490731d36cfc7e (patch) | |
tree | 317fb279b77306a0c582c77321c2f1f76181baa2 /desktop/tree.c | |
parent | cf5782718718bee4788dea315dfdbaeafbc3cbc0 (diff) | |
download | netsurf-a669a7d12ca5c70c1e3ba3813c490731d36cfc7e.tar.gz netsurf-a669a7d12ca5c70c1e3ba3813c490731d36cfc7e.tar.bz2 |
Make treeview test parasite sit on mouse input too.
Diffstat (limited to 'desktop/tree.c')
-rw-r--r-- | desktop/tree.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/tree.c b/desktop/tree.c index 64ba91f1f..edc1f97d0 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -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; |