Skip to content

Fix/xdnd drag over stalls - #21

Merged
Squiblydoo merged 2 commits into
masterfrom
fix/xdnd-drag-over-stalls
Sep 4, 2026
Merged

Squiblydoo merged 2 commits into
masterfrom
fix/xdnd-drag-over-stalls

Conversation

@Squiblydoo

Copy link
Copy Markdown
Collaborator

This is to update the TKDND binaries to 2.10.2 based on my changes there. The core changes are in the .tcl files for Unix, but all the binaries were updated to be in sync.

xdnd::HandleXdndPosition previously fetched the full dropped-data
selection on every pointer motion while hovering a drop target, even
when nothing consumed it. That round-trip can block for seconds under
XWayland, and doing it on every mouse-move (instead of once per drop)
is what causes multi-second drag-over stalls and races with
HandleLeave.

Now the fetch only happens when a bound <<DropEnter>>/<<DropPosition>>
script actually references %D, and the result is cached per hovered
target (the data can't change for the life of a drag) instead of being
re-fetched on every position event. Cache is reset on XdndLeave/
XdndEnter so a later, unrelated drag never sees stale data.
@Squiblydoo
Squiblydoo merged commit 8eafbb5 into master Sep 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant