This commit is contained in:
Jonathan Baudanza 2026-02-03 20:00:36 +01:00 committed by GitHub
commit 7581a57fb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),