-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] Monitor::from_point
and Monitor::cursor_position
#3057
Comments
The |
Yeah, I looked at the api again, it is indeed the monitor where the form is returned, so there is no api that can return the position of the mouse? |
We do have it on |
Can you expose that? Maybe I can calculate the relevant information from the mouse position and monitor coordinates :) |
Monitor::from_point
and Monitor::cursor_position
needs tauri-apps/tao#186 and tauri-apps/tao#187 |
Describe the bug
I have two available monitor, and I want to display the window on the current display,but the window.current_monitor() method does not seem to return the display screen where the mouse is located
It seems that the form always appears in the main display!
this is my code:
Platform and Versions (required):
Additional context
this is my monitors
The text was updated successfully, but these errors were encountered: