diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 55f0c3e0..34da7aeb 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -1780,12 +1780,12 @@ impl Shell { let geo = o.geometry(); match direction { Direction::Left | Direction::Right => { - !(geo.loc.y + geo.size.h < current_output_geo.loc.y - || geo.loc.y > current_output_geo.loc.y + current_output_geo.size.h) + geo.loc.y < current_output_geo.loc.y + current_output_geo.size.h + && geo.loc.y + geo.size.h > current_output_geo.loc.y } Direction::Up | Direction::Down => { - !(geo.loc.x + geo.size.w < current_output_geo.loc.x - || geo.loc.x > current_output_geo.loc.x + current_output_geo.size.w) + geo.loc.x < current_output_geo.loc.x + current_output_geo.size.w + && geo.loc.x + geo.size.w > current_output_geo.loc.x } } })