From a90025af7f6d229a73e3efa8d89ac72063f33aa7 Mon Sep 17 00:00:00 2001 From: George Atkinson Date: Wed, 29 Nov 2023 17:01:34 +0000 Subject: [PATCH] Force transparency only on macos --- crates/vizia_winit/src/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/vizia_winit/src/window.rs b/crates/vizia_winit/src/window.rs index 2573cc1a3..7a45cc31c 100644 --- a/crates/vizia_winit/src/window.rs +++ b/crates/vizia_winit/src/window.rs @@ -147,7 +147,8 @@ impl Window { // Apply generic WindowBuilder properties let window_builder = apply_window_description(window_builder, window_description); - let template = ConfigTemplateBuilder::new().with_alpha_size(8).with_transparency(true); + let template = + ConfigTemplateBuilder::new().with_alpha_size(8).with_transparency(cfg!(cgl_backend)); let display_builder = DisplayBuilder::new().with_window_builder(Some(window_builder)); let (window, gl_config) = display_builder