From f68ce10c1be0f6764262388f6c74c98764ca9a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 21 Nov 2025 01:26:40 +0100 Subject: [PATCH] Use opaque background color for `window::Preedit` Co-authored-by: KENZ --- winit/src/window.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/winit/src/window.rs b/winit/src/window.rs index 43660496..77274d7a 100644 --- a/winit/src/window.rs +++ b/winit/src/window.rs @@ -360,6 +360,11 @@ where ) { self.position = position; + let background = Color { + a: 1.0, + ..background + }; + let spans = match &preedit.selection { Some(selection) => { vec![ @@ -428,6 +433,11 @@ where .min(viewport.y + viewport.height - bounds.height); renderer.with_layer(bounds, |renderer| { + let background = Color { + a: 1.0, + ..background + }; + renderer.fill_quad( renderer::Quad { bounds,