From 85d47d190376aab89ad0a850e83ce16c2cb7f5a3 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 27 Apr 2022 13:52:47 +0200 Subject: [PATCH] shell: Fix fullscreen window size on fractional scaled outputs --- src/shell/workspace.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell/workspace.rs b/src/shell/workspace.rs index c4015e47..e5317c2c 100644 --- a/src/shell/workspace.rs +++ b/src/shell/workspace.rs @@ -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(), ); });