shell: next_output - axis overlap filter logic without negation
Signed-off-by: Dusan <dusanuveric@protonmail.com>
This commit is contained in:
parent
1a019280f3
commit
a96497f6f7
1 changed files with 4 additions and 4 deletions
|
|
@ -1786,12 +1786,12 @@ impl Shell {
|
||||||
let geo = o.geometry();
|
let geo = o.geometry();
|
||||||
match direction {
|
match direction {
|
||||||
Direction::Left | Direction::Right => {
|
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 => {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue