uidev: make window translucent

This commit is contained in:
Aleksander
2025-09-21 19:06:09 +02:00
parent 46eb1ee00f
commit 858c5da21c
4 changed files with 15 additions and 21 deletions

View File

@@ -41,7 +41,7 @@ pub fn init_window() -> anyhow::Result<(
#[allow(deprecated)]
let window = Arc::new(
event_loop
.create_window(Window::default_attributes())
.create_window(Window::default_attributes().with_transparent(true))
.unwrap(), // want panic
);
let surface = Surface::from_window(instance.clone(), window.clone())?;