Is that handled by conrod or by the window manager? if conrod, how does one set window opacity? Would something like this work:
let mut ui = conrod_core::UiBuilder::new([WIDTH as f64, HEIGHT as f64])
.theme(conrod::theme::Theme {background_color: conrod_core::color::TRANSPARENT, ..Default::default()})
.build();
So using a theme with transparent background does not solve it. When the window is built I have added with_transparency(true) which generates the error
thread 'main' panicked at 'called Result::unwrap() on an Err value: GlutinCreationError(NoAvailablePixelFormat)', src/libcore/result.rs:1084:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.
If I set it to false then it runs fine but with an opaque background. I'm using X11 on Manjaro Linux with OpenGL version 3.0 Mesa 19.1.3. Getting the glium::glutin::GL_CORE for the app returns Specific(OpenGl, (3, 2)). Not sure if that is relevant.
not sure how to do that in conrod, but the window system compositor needs to be told hat you want the window to have alpha transparency
if conrod, how does one set window opacity?
"window opacity" is different thing as it implies the entire window is made partially transparent, not just the parts your application wants to be (the background) using the alpha channel