Created attachment 9333 Fix for the issue Basically, when dragging&dropping, window buttons in deskbar mode work *as though they are horizontal*, even though they are laid-out *vertically*.
Created attachment 9334 Demonstration of undesired behaviour
Comment on attachment 9334 Demonstration of undesired behaviour When Sorting order is set to “None, allow Drag&Drop”, drag&drop behaviour is counter-intuitive: in deskbar mode window buttons are arranged *vertically*, but the checks to determine whether to put the button before or after the cursor are done *horizontal* coordinate. In other words, when dragged button is dropped on top of another button, it checks if it was dropped on left or right half, instead of checking for top/bottom half. This leads to a counter-intuitive behaviour: when I drop one button "between" two other buttons, the position where the button is actually dropped is seemingly random.
Old bug report: https://bugzilla.xfce.org/show_bug.cgi?id=11781
Hudd referenced this bugreport in commit 07491d3372e464b50f28a42e0c79233d4d73b4fd tasklist: Fix drag&drop in deskbar mode (Bug #16298) https://git.xfce.org/xfce/xfce4-panel/commit?id=07491d3372e464b50f28a42e0c79233d4d73b4fd
Hudd referenced this bugreport in commit 9312580b92190fe6adcf197dab41cccce46eb972 tasklist: Fix drag&drop in deskbar mode (Bug #16298) https://git.xfce.org/xfce/xfce4-panel/commit?id=9312580b92190fe6adcf197dab41cccce46eb972
Thanks for the fix - makes sense! Pushed it to master and the 4.14 maintenance branch. I adjusted the explanation in the commit to a developer's point of view (as users aren't likely to read commit notes).