shaders: Use half-pixels for the outline

This commit is contained in:
Victoria Brekenfeld 2025-12-15 18:12:57 +01:00 committed by Victoria Brekenfeld
parent fc7bbd7814
commit 2c9857fdfc
2 changed files with 3 additions and 3 deletions

View file

@ -208,7 +208,7 @@ impl IndicatorShader {
alpha: f32,
active_window_hint: [f32; 3],
) -> PixelShaderElement {
let t = (thickness as i32) / 2;
let t = thickness as i32;
element_geo.loc -= (t, t).into();
element_geo.size += (t * 2, t * 2).into();