Migrate away from Rectangle::from_loc_and_size
Deprecated in `smithay` by https://github.com/Smithay/smithay/pull/1621.
This commit is contained in:
parent
9074447c4f
commit
b685512127
26 changed files with 184 additions and 201 deletions
|
|
@ -1955,7 +1955,7 @@ impl State {
|
|||
let location = global_pos + offset.as_global().to_f64();
|
||||
let output = workspace.output();
|
||||
let output_geo = output.geometry().to_local(output);
|
||||
if Rectangle::from_loc_and_size(offset.as_local(), output_geo.size)
|
||||
if Rectangle::new(offset.as_local(), output_geo.size)
|
||||
.intersection(output_geo)
|
||||
.is_some_and(|geometry| {
|
||||
geometry.contains(global_pos.to_local(output).to_i32_round())
|
||||
|
|
@ -1970,7 +1970,7 @@ impl State {
|
|||
let location = global_pos + offset.as_global().to_f64();
|
||||
let output = workspace.output();
|
||||
let output_geo = output.geometry().to_local(output);
|
||||
if Rectangle::from_loc_and_size(offset.as_local(), output_geo.size)
|
||||
if Rectangle::new(offset.as_local(), output_geo.size)
|
||||
.intersection(output_geo)
|
||||
.is_some_and(|geometry| {
|
||||
geometry.contains(global_pos.to_local(output).to_i32_round())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue