Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/tauri-runtime-wry/src/monitor/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Comment thread
jbaudanza marked this conversation as resolved.
Resolved
PhysicalRect {
size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height)
.to_physical(scale_factor),
Expand Down