Repository navigation
Fix/xdnd drag over stalls - #21
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.