feat(wm): implement move resizing and moving

This commit implements moving and resizing by mouse as it works in
komorebi for Windows. We're able to make this a bit nicer here because
macOS emits separate events for resizing and movement, so now we have
MoveStart/MoveEnd and ResizeStart/ResizeEnd.

Resizing is a little janky because the system does not update the
position of resized windows quickly enough, so if you do a quick drag
and release the left mouse button, sometimes the accessibility
attributes for the size and position of that window won't have been
updated, and no resize will take place.
This commit is contained in:
LGUG2Z committed 2025-09-27 10:55:34 -07:00
1 parent 69909df2f5
commit fb416e75fd
7 files changed
+568 -9

No files matched your search

-2
View File
@@ -1,7 +1,5 @@
* The flow for manually adding Accessibility and Screen Recording permissions
sucks
* Mouse resizing is not implemented
* Swapping window containers via mouse dragging is not implemented
* Fullscreen windows aren't supported (and probably won't be) and break the
state (probably shouldn't)
* Application hiding isn't supported (and probably won't be) and breaks the