From bcdb31be1448a41f4245ea0094ff6a290389bcca Mon Sep 17 00:00:00 2001 From: lars-berger Date: Thu, 14 Nov 2024 08:39:14 +0800 Subject: [PATCH] fix: fix regression where some taskbar positions cause incorrect working area (#850) --- packages/wm/src/common/rect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/wm/src/common/rect.rs b/packages/wm/src/common/rect.rs index bb858cd3..f1e9275b 100644 --- a/packages/wm/src/common/rect.rs +++ b/packages/wm/src/common/rect.rs @@ -118,8 +118,8 @@ impl Rect { /// Gets the delta between this rect and another rect. pub fn delta(&self, other: &Rect) -> RectDelta { RectDelta { - left: LengthValue::from_px(self.left - other.left), - top: LengthValue::from_px(self.top - other.top), + left: LengthValue::from_px(other.left - self.left), + top: LengthValue::from_px(other.top - self.top), right: LengthValue::from_px(self.right - other.right), bottom: LengthValue::from_px(self.bottom - other.bottom), }