Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

fix: fix regression where some taskbar positions cause incorrect working area (#850)

lars-bergerbcdb31be1448
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),
}