Skip to content

Commit

Permalink
shell: next_output - axis overlap filter logic without negation
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan <dusanuveric@protonmail.com>
  • Loading branch information
uvera authored and Drakulix committed Feb 28, 2025
1 parent 9c45acf commit bb1d836
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
})
Expand Down

0 comments on commit bb1d836

Please sign in to comment.