Ensemble icon indicating copy to clipboard operation
Ensemble copied to clipboard

feature request: the ability to resize windows from VisionOS

Open billyjacoby opened this issue 1 year ago • 4 comments

Totally understand how early along this project is, but the one glaring thing that seems to be missing for my potential use case is the ability to resize macOS windows from visionOS.

I've got a limited amount of Swift knowledge, but I'm happy to take a stab at getting this implemented. It just might take a bit of time for me to do so.

If anyone has recommendations for how to achieve this that would be welcome

billyjacoby avatar Jan 31 '24 19:01 billyjacoby

Initially trying to work on this here: https://github.com/billyjacoby/Ensemble/tree/window-size

billyjacoby avatar Jan 31 '24 21:01 billyjacoby

This is on the roadmap but as I have probably mentioned already there's a lot of stuff I need to work on first before I can focus on this. The API to do this is AXUIElementSetAttributeValue with the kAXPositionAttribute but there are a number of things that need to be solved beyond just resizing the window–for example, I need to think about how to distinguish this from scaling the window and how to communicate sizing and position constraints back to visionOS.

saagarjha avatar Feb 01 '24 03:02 saagarjha

Hmm yeah the communicating the constraints definitely sounds to be the most tricky. I haven't yet tested if overlapping windows causes issues, but if not I could imagine that the only real constraint would be the display size.

Is there a roadmap doc or anything similar posted where I could maybe find some smaller things to work on in the mean time? I really love the idea behind this project and would love to contribute however possible

billyjacoby avatar Feb 01 '24 03:02 billyjacoby

I guess this project has been seeing a lot of attention recently so I might as well make a formal roadmap: https://github.com/users/saagarjha/projects/1. For now I will probably say "no" to any code contributions but feel free to use the issues to discuss or make your own if you see something that's not listed.

saagarjha avatar Feb 01 '24 04:02 saagarjha