mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 14:17:02 +00:00
Merge 9dcc0cf1b1 into c37368f339
This commit is contained in:
commit
7581a57fb4
@ -19,6 +19,10 @@ impl super::MonitorExt for tao::monitor::MonitorHandle {
|
||||
|
||||
position.x += visible_frame.origin.x - screen_frame.origin.x;
|
||||
|
||||
// visible_frame.origin is using a bottom-up coordinate system, so this needs to be converted
|
||||
// to a top-down coordinate system. origin.y will typically represent the top of the dock.
|
||||
position.y += screen_frame.size.height - visible_frame.origin.y - visible_frame.size.height;
|
||||
|
||||
PhysicalRect {
|
||||
size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height)
|
||||
.to_physical(scale_factor),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user