From ddfb7ee45b2e74ebce0af5dc19c94c2ed84ca0e5 Mon Sep 17 00:00:00 2001 From: David Brown <dbrown@gitlab.riscosopen.org> Date: Wed, 17 Sep 1997 15:11:14 +0000 Subject: [PATCH] Slight alteration to drag and drop model --- c/Hotlist | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/c/Hotlist b/c/Hotlist index 38154ac..f69fcd9 100644 --- a/c/Hotlist +++ b/c/Hotlist @@ -4528,7 +4528,14 @@ static int hotlist_drag_completed_handler(int event_code, WimpPollBlock *event, { /* If we're over half way past the item, place after it */ - position = HOTLIST_POSITION_AFTER; + if (targetitem->type == hl_directory && targetitem->flags & HOTLIST_D_IS_OPEN) + { + position = HOTLIST_POSITION_BEGINNING; + } + else + { + position = HOTLIST_POSITION_AFTER; + } } else { -- GitLab