Allow dragging between screens on same output #135
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.
First off, thanks for this project - I was slowly working out how to do this myself when I stumbled across it, executed much better than I suspect I could!
As-is, you are prevented from switching outputs when a mouse button is held (which usually means you're dragging something). That makes sense, but you should (I believe?) be able to drag between screens on the same output; I've attempted to allow that in this PR, and it seems to be working for my purposes.
However, there are definitely some aspects I don't understand here, particularly around the various quirks on different operating systems, so happy to iterate until I do and this, or some variant of it, can be accepted. The main thing that was mysterious was that even with no modifications, I was able to drag from my secondary screen to my primary screen - I was just unable to drag from my primary screen to my secondary screen. I suspect (though it's a total guess on my part) that's something to do with the difference between desktops and screens (which I have not understood yet), but the inconsistency suggests to me something is amiss somewhere!