mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 21:39:56 +03:00
Make treeview test parasite sit on mouse input too.
This commit is contained in:
parent
cf57827187
commit
a669a7d12c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user