From 359c060e0f47055c342127de2bbfc40028a6af54 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Tue, 28 Dec 2021 13:08:18 +0100 Subject: [PATCH] space: apply transform for output_geometry --- src/desktop/space/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/desktop/space/mod.rs b/src/desktop/space/mod.rs index 4734d14..08b5b3e 100644 --- a/src/desktop/space/mod.rs +++ b/src/desktop/space/mod.rs @@ -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(), ) }) }