Skip to content

Commit

Permalink
Force transparency only on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
geom3trik committed Nov 29, 2023
1 parent f357475 commit a90025a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/vizia_winit/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a90025a

Please sign in to comment.