rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.1k stars 742 forks source link

Filter level when getting window by location #1268

Closed decodism closed 9 months ago

decodism commented 9 months ago

Tries to fix https://github.com/rxhanson/RectanglePro-Community/issues/353

rxhanson commented 9 months ago

Thanks! This is a good way to handle this that I didn't really think through initially.

rxhanson commented 9 months ago

I'm going to push out a Rectangle Pro beta with your change, since there are more users reporting there, and will follow up with a Rectangle release depending on the response. Even if there are still some apps that cause issues, this is definitely a step in the right direction.

decodism commented 9 months ago

I think a more effective fix would be possible with window tags, but that requires private APIs.

rxhanson commented 9 months ago

I've been considering reducing that window level threshold from 1000 to 23. This way it will ignore the Notification Center (level 23). Do you know of any windows above level 23 that would be valid for drag to screen edge snapping?

decodism commented 9 months ago

I'm not sure which level threshold is "safe".

rxhanson commented 9 months ago

@decodism, thanks! I think this might be the best option I have at the moment so I'm going to go with it.