From d394240fe65072d4b03b54c3fb96c898fba0d1c1 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 31 Aug 2023 18:07:45 +0200 Subject: [PATCH] stack: Fix wrongly scaled stack selection --- src/shell/element/stack.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/element/stack.rs b/src/shell/element/stack.rs index 36aed7e5..eed954d1 100644 --- a/src/shell/element/stack.rs +++ b/src/shell/element/stack.rs @@ -714,8 +714,8 @@ impl Program for CosmicStackInternal { ) { if self.group_focused.load(Ordering::SeqCst) { let border = Rectangle::from_loc_and_size( - (0, TAB_HEIGHT - scale as i32), - (pixels.width() as i32, scale as i32), + (0, ((TAB_HEIGHT as f32 * scale) - scale).floor() as i32), + (pixels.width() as i32, scale.ceil() as i32), ); let mut paint = tiny_skia::Paint::default();