Notify system of move/resize event start and end#564
Notify system of move/resize event start and end#564RamonUnch merged 1 commit intoRamonUnch:mainfrom
Conversation
|
Very good, this also solves his use problem on glazewm |
|
@RamonUnch I've changed this PR to use the actual event constants I've also been using this PR for a while now and didn't noticed any issue with it so far. |
|
It works very stable, this is not only intended for use with glazewm and komorebi, in fact, this event is normally triggered by the system when we drag the window title bar, and resize the window by the window edge, this pr just corrects the normal event.It can benefit from any application that requires window change events when these tools are used in conjunction with altsnap. |
|
This is a very good finding, thanks a lot for the Help, |
No problem! Do you intend to release 1.64 soon? |
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