Repository navigation
fix(browser): keep same-volume move when Wayland narrows an in-app drop to copy - #2661
Conversation
The classifier now reads the original action set from the in-app drag source when available. External drops use the negotiated actions, and the debug log records both action sets. A regression test checks that a same-volume drop resolves to MOVE when the source offers COPY and MOVE but the negotiated action is COPY. Fixes lgse#2107
The helper only wrapped Option::unwrap_or, and its test asserted that wrapper rather than the drop route, which needs a real Wayland drop to exercise.
6d62c39 to
87cd341
Compare
87cd341 to
6c4df1e
Compare
|
Thanks for the fix. I reviewed it and prepared it for merge. Retargeted to Review change (3772e4f): inlined The fix works. I ran the QA drop scenarios on a private headless sway 1.12 with GTK 4.24.1 (
The runs it fixes are the same-volume moves, which fail intermittently per run ( Local checks on the final code
The full Rust suite was not run locally; the change is confined to one classifier and CI runs the full suite. CI: all checks pass on 6c4df1e (QA scenarios are dispatch-only and were run locally, above). |
|
Thanks for merging this, @l0gicgate. Same-volume drags on Wayland should move the item again instead of leaving a copy behind when the drop gets narrowed before the volume lookup finishes. |
Description
On Wayland, a quick drag between folders on the same volume can leave the item in both places when the user expects it to move. While the volume lookup is pending, Strata reports COPY as its preferred action. Wayland can narrow the drop to COPY before the lookup finishes, and the classifier then treats MOVE as unavailable even though the in-app drag source offered it.
The classifier now reads the original action set from the in-app drag source when available. External drops use the negotiated actions, and the debug log records both action sets.
Visual evidence
N/A: no interface change. A same-volume drag now moves the item instead of copying it.
How to test
Expected result: The first item moves and no copy stays behind. The Ctrl drag copies. The drag onto another drive opens the "Copy or move?" prompt.
Related issue
Closes #2107
AI was used for assistance.