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
|
|
@ -124,7 +124,7 @@ impl OverlapNotifyState {
|
|||
if let Some(window_geo) = window.global_geometry() {
|
||||
if let Some(intersection) = layer_geo.intersection(window_geo) {
|
||||
// relative to layer location
|
||||
let region = Rectangle::from_loc_and_size(
|
||||
let region = Rectangle::new(
|
||||
intersection.loc - layer_geo.loc,
|
||||
intersection.size,
|
||||
)
|
||||
|
|
@ -145,7 +145,7 @@ impl OverlapNotifyState {
|
|||
.to_global(&output);
|
||||
if let Some(intersection) = layer_geo.intersection(other_geo) {
|
||||
// relative to layer location
|
||||
let region = Rectangle::from_loc_and_size(
|
||||
let region = Rectangle::new(
|
||||
intersection.loc - layer_geo.loc,
|
||||
intersection.size,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue