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
|
|
@ -471,13 +471,14 @@ impl XwmHandler for State {
|
|||
|
||||
if let Some(current_geo) = current_geo {
|
||||
let ssd_height = mapped.ssd_height(false).unwrap_or(0);
|
||||
mapped.set_geometry(Rectangle::from_loc_and_size(
|
||||
mapped.set_geometry(Rectangle::new(
|
||||
current_geo.loc,
|
||||
(
|
||||
w.map(|w| w as i32).unwrap_or(current_geo.size.w),
|
||||
h.map(|h| h as i32 + ssd_height)
|
||||
.unwrap_or(current_geo.size.h),
|
||||
),
|
||||
)
|
||||
.into(),
|
||||
))
|
||||
} else {
|
||||
let _ = window.configure(None); // ack and force old state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue