space: apply transform for output_geometry

This commit is contained in:
Victor Brekenfeld 2021-12-28 13:08:18 +01:00
parent 64c535464a
commit 359c060e0f
1 changed files with 6 additions and 1 deletions

View File

@ -215,11 +215,16 @@ impl Space {
return None;
}
let transform: Transform = o.current_transform().into();
let state = output_state(self.id, o);
o.current_mode().map(|mode| {
Rectangle::from_loc_and_size(
state.location,
mode.size.to_f64().to_logical(state.render_scale).to_i32_round(),
transform
.transform_size(mode.size)
.to_f64()
.to_logical(state.render_scale)
.to_i32_round(),
)
})
}