diff --git a/.changes/work-area.md b/.changes/work-area.md new file mode 100644 index 000000000000..0c7422f347aa --- /dev/null +++ b/.changes/work-area.md @@ -0,0 +1,6 @@ +--- +"tauri": patch:bug +"tauri-runtime-wry": patch:bug +--- + +Fix monitor work area Y position on macOS. diff --git a/crates/tauri-runtime-wry/src/monitor/macos.rs b/crates/tauri-runtime-wry/src/monitor/macos.rs index 6ed9f3c1dd56..f56a48884ef2 100644 --- a/crates/tauri-runtime-wry/src/monitor/macos.rs +++ b/crates/tauri-runtime-wry/src/monitor/macos.rs @@ -19,6 +19,8 @@ impl super::MonitorExt for tao::monitor::MonitorHandle { position.x += visible_frame.origin.x - screen_frame.origin.x; +position.y += (screen_frame.origin.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),