From d7350d18eebcda827bfdcb73fd595d63cf6ca516 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Tue, 14 Dec 2021 14:38:33 +0100 Subject: [PATCH] desktop: fix negative damage values --- src/desktop/space.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/desktop/space.rs b/src/desktop/space.rs index f4af0e9..e47ad96 100644 --- a/src/desktop/space.rs +++ b/src/desktop/space.rs @@ -582,7 +582,7 @@ impl Space { .iter() .filter(|geo| geo.overlaps(wgeo)) .map(|geo| geo.intersection(wgeo)) - .map(|geo| Rectangle::from_loc_and_size(geo.loc - wgeo.loc, geo.size)) + .map(|geo| Rectangle::from_loc_and_size(geo.loc - loc, geo.size)) .collect::>(); slog::trace!( self.logger,