Howdy,
I use Haiku daily and there is a real annoyance in Tracker when drag-and-dropping files on the desktop or a folder in icon view mode. Specifically, most of the time, the dragged file is not dropped in the position of the mouse pointer, but in some other (unpredictable? random?) position in the desktop, and sometimes even out of viewport when the drop target is a folder window.
There is a post in the Haiku forums about and Odroid C2 port where the author mentions that he fixed this annoyance in his port.

https://discuss.haiku-os.org/t/haiku-port-to-the-odroid-c2/20317/5
I contacted the author of the port, and he shared how this annoyance was fixed, so I thought I would share it here, in the hope that this could be addressed in RenkuOS. Here it goes:
Dragging a file from a Tracker window in list view onto the Desktop (or into a folder shown as icons) dropped the icon somewhere unrelated to the mouse, often off the screen. I fixed it on 2026-10-28 in fork commit d7f1ac1246 (build +45), and it reached your second C2 then.
The error
The code that decides where dropped icons land is BPoseView::GetDropPointList() in PoseView.cpp:6149. For each dragged file it took one of two paths:
- File with no saved icon position (normal for files coming from a list view): it found a free spot on the Desktop the way new files get placed, then added how far the mouse had moved during the drag. That distance was measured in the source window’s coordinates, so “free spot plus mouse movement” pointed nowhere in particular, often far from the drop point or off screen. Worse, it ran that placement on the source window’s own entry for the file, so the original was quietly repositioned too.
- File from a list view that did have a saved position (left over from viewing that folder as icons): it used that old icon-view position as if it matched the list view’s mouse coordinates. They don’t, so that also gave a seemingly random spot.
Dragging between two icon views was fine. Icons keep their arrangement relative to the mouse there, and the math holds.
The fix
From an icon view, with saved positions: unchanged. Icons keep their arrangement relative to the mouse.
From a list view, or with no position: icons land at the drop point instead.
- The first is centered under the mouse.
- Any others go next to it on the destination’s grid, four per row, the same layout used for files dropped from elsewhere.
- Snap-to-grid still applies afterwards.
The source window’s entry is no longer touched.
It was a 12-line change in that one function.
commit d7f1ac1246
Date: Wed Oct 28 22:22:10 2026 -0400
Tracker: drop items from list views where the mouse is
--- a/src/kits/tracker/PoseView.cpp
+++ b/src/kits/tracker/PoseView.cpp
@@ -6119,6 +6119,7 @@ BPoseView::GetDropPointList(BPoint dropStart, BPoint dropEnd, const PoseList* po
int32 poseCount = poseList->CountItems();
BList* pointList = new BList(poseCount);
+ int32 gridIndex = 0;
for (int32 index = 0; index < poseCount; index++) {
BPose* pose = poseList->ItemAt(index);
if (pose == NULL)
@@ -6129,14 +6130,19 @@ BPoseView::GetDropPointList(BPoint dropStart, BPoint dropEnd, const PoseList* po
// drop poses at the end of the list
poseLoc = dropEnd + BPoint(0, index * fListElemHeight);
} else {
- if (pose->HasLocation()) {
- // copy the source location
+ if (sourcePoseView->ViewMode() != kListMode && pose->HasLocation()) {
+ // keep the poses where they are relative to the mouse
poseLoc = dropEnd + (pose->Location(sourcePoseView) - dropStart);
} else {
- // no source location, auto-place the pose in the destination
- BRect destViewBounds(Bounds());
- const_cast<BPoseView*>(this)->PlacePose(pose, destViewBounds);
- poseLoc = dropEnd + (pose->Location(this) - dropStart);
+ // A list view has no icon positions (a location a pose may
+ // have is from an icon view of its folder, unrelated to
+ // dropStart). Drop the poses at the mouse: the first one
+ // centered there, the others next to it in our grid, four in
+ // a row.
+ float halfIcon = IconSizeInt() / 2.0f;
+ poseLoc = dropEnd - BPoint(halfIcon, halfIcon)
+ + BPoint((gridIndex % 4) * fGrid.x, (gridIndex / 4) * fGrid.y);
+ gridIndex++;
}
if (pinToGrid)
poseLoc = PinToGrid(poseLoc, fGrid, fOffset);
What would be the best course of action to adopt this fix in RenkuOS? Bug report? Please advice.