From bc2f0e48acba5c1c99b9fceb1000863c47df89ef Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Fri, 9 May 2025 07:36:12 -0400 Subject: [PATCH] fix(macOS): caculation for work area (#13401) * remove y offset * Create change-pr-13401.md --- .changes/change-pr-13401.md | 5 +++++ crates/tauri-runtime-wry/src/monitor/macos.rs | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changes/change-pr-13401.md diff --git a/.changes/change-pr-13401.md b/.changes/change-pr-13401.md new file mode 100644 index 000000000..ec4e3856b --- /dev/null +++ b/.changes/change-pr-13401.md @@ -0,0 +1,5 @@ +--- +"tauri": 'patch:bug' +--- + +fix(macOS): caculation for work area diff --git a/crates/tauri-runtime-wry/src/monitor/macos.rs b/crates/tauri-runtime-wry/src/monitor/macos.rs index d34e256b2..6ed9f3c1d 100644 --- a/crates/tauri-runtime-wry/src/monitor/macos.rs +++ b/crates/tauri-runtime-wry/src/monitor/macos.rs @@ -18,7 +18,6 @@ impl super::MonitorExt for tao::monitor::MonitorHandle { let mut position = self.position().to_logical::(scale_factor); position.x += visible_frame.origin.x - screen_frame.origin.x; - position.y += visible_frame.origin.y - screen_frame.origin.y; PhysicalRect { size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height)