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
|
|
@ -214,7 +214,7 @@ impl CosmicWindow {
|
|||
let loc = (geo.loc.x, geo.loc.y + ssd_height);
|
||||
let size = (geo.size.w, std::cmp::max(geo.size.h - ssd_height, 0));
|
||||
p.window
|
||||
.set_geometry(Rectangle::from_loc_and_size(loc, size), ssd_height as u32);
|
||||
.set_geometry(Rectangle::new(loc.into(), size.into()), ssd_height as u32);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue