Notify system of move/resize event start and end #564
Merged
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 sends a
NotifyWinEventto notify that the window has started/ended moving/resizing.This should fix compatibility with Komorebi. With this change the movements and resizes are now picked up by komorebi correctly.
Although there is still an issue with komorebi borders, since when moving they check if left mouse button is pressed to keep updating, but somehow AltSnap is preventing the left mouse down from being picked up by komorebi, it checks usingGetKeyState(VK_LBUTTON)but this returns 0 for some reason. The borders update properly once you finish the move/resize though.@RamonUnch Can you help me out here to understand why is the left mouse button not being picked up properly? Is it because AltSnap returns1onLowLevelMouseProcwhen starting a move/resize? Is there any way around it?I've made a PR on komorebi to fix this on their side. So that PR along with this one should make AltSnap and komorebi work really well together!
Fix #535