input: Properly constrain top/left edge of outputs
This commit is contained in:
parent
8cafaa64cb
commit
05fadbbc85
1 changed files with 2 additions and 2 deletions
|
|
@ -306,10 +306,10 @@ impl State {
|
|||
}
|
||||
let output_geometry = output.geometry();
|
||||
|
||||
position.x = 0.0f64
|
||||
position.x = (output_geometry.loc.x as f64)
|
||||
.max(position.x)
|
||||
.min((output_geometry.loc.x + output_geometry.size.w) as f64);
|
||||
position.y = 0.0f64
|
||||
position.y = (output_geometry.loc.y as f64)
|
||||
.max(position.y)
|
||||
.min((output_geometry.loc.y + output_geometry.size.h) as f64);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue