shell: Fix fullscreen window size on fractional scaled outputs

This commit is contained in:
Victoria Brekenfeld 2022-04-27 13:52:47 +02:00
parent c567448fc8
commit 85d47d1903

View file

@ -214,7 +214,9 @@ impl Workspace {
.current_mode()
.map(|m| m.size)
.unwrap_or((0, 0).into())
.to_logical(output.current_scale().integer_scale()),
.to_f64()
.to_logical(output.current_scale().fractional_scale())
.to_i32_round(),
);
});