summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-09-14 19:14:28 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-09-18 22:18:44 (GMT)
commit4d842226546bf1abb84dbdce798d99490845d200 (patch)
treedef70fecc5e33ee1ca5ee2bdb1321961a153bb08
parentf211b6c89aabb1174bf5f1966f91c5d883245fd2 (diff)
downloadnetsurf-4d842226546bf1abb84dbdce798d99490845d200.tar.gz
netsurf-4d842226546bf1abb84dbdce798d99490845d200.tar.bz2
Treeview: Update search bar display when it loses focus.
-rw-r--r--desktop/treeview.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 8021782..d2cb2db 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -4527,7 +4527,11 @@ treeview_mouse_action(treeview *tree, browser_mouse_state mouse, int x, int y)
tree->search.active = false;
textarea_set_caret(tree->search.textarea, -1);
- return;
+ r.x0 = 0;
+ r.y0 = 0;
+ r.x1 = REDRAW_MAX;
+ r.y1 = tree_g.line_height;
+ treeview__cw_invalidate_area(tree, &r);
}
/* Handle textarea related mouse action */