shell: next_output - axis overlap filter logic without negation

Signed-off-by: Dusan <dusanuveric@protonmail.com>
This commit is contained in:
Dusan 2025-01-30 16:48:39 +01:00 committed by Victoria Brekenfeld
parent 1a019280f3
commit a96497f6f7

View file

@ -1786,12 +1786,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
}
}
})