-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add monitor::from_point()
#187
Comments
yeah this is necessary for apps that want to show itself relative to the screen, for example an overlay music player They would need to get cursor position first, then get the monitor from it then calculate their window position as they want. |
Do we have any plans to support this feature? |
@CNLHC PRs are always welcome. |
I wrote a draft PR that tries to solve this issue. Since we already have the Besides the Currently, this PR only contains macOS implementation, if any reviewer thinks it is the correct way to solve this problem, I will complete this PR by supporting other platforms : ). |
Add a method called
monitor::from_point()
. Apologies I am not 100% sure what this method is for, but it was discussed by @amrbashir in this thread.Possibly for allow calculations to position windows between workspaces / monitors.
The text was updated successfully, but these errors were encountered: