From 9dcc0cf1b11bdc1eac7d20b9cbf6c41407440ce4 Mon Sep 17 00:00:00 2001 From: Jonathan Baudanza Date: Sun, 14 Dec 2025 15:13:43 -0500 Subject: [PATCH] fix(macOS): correct value for work_area.position.y --- crates/tauri-runtime-wry/src/monitor/macos.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/tauri-runtime-wry/src/monitor/macos.rs b/crates/tauri-runtime-wry/src/monitor/macos.rs index 6ed9f3c1d..eb08609a8 100644 --- a/crates/tauri-runtime-wry/src/monitor/macos.rs +++ b/crates/tauri-runtime-wry/src/monitor/macos.rs @@ -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),