From bf3bea587499d9d69a4d19f8a0e1cf5948c52b39 Mon Sep 17 00:00:00 2001 From: Steve Fryatt Date: Sun, 8 Sep 2013 16:24:21 +0100 Subject: Correct constraining rectangle for treeview drags so that pointer can't leave window. --- riscos/treeview.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/riscos/treeview.c b/riscos/treeview.c index 4fb2e1e7b..43fcdcedb 100644 --- a/riscos/treeview.c +++ b/riscos/treeview.c @@ -1008,8 +1008,7 @@ static void ro_treeview_drag_start(ro_treeview *tv, wimp_pointer *pointer, drag.bbox.x0 = state->visible.x0; drag.bbox.y0 = state->visible.y0; drag.bbox.x1 = state->visible.x1; - drag.bbox.y1 = state->visible.y1 - - ro_toolbar_height(tv->tb); + drag.bbox.y1 = state->visible.y1 - ro_toolbar_height(tv->tb) - 2; switch (tv->drag) { case TREE_SELECT_DRAG: -- cgit v1.2.3