Skip to content

Commit

Permalink
clip children, fixes #1331
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jan 1, 2025
1 parent 8972938 commit fb7ef9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/wgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ impl ApplicationHandler for State {
fn resumed(&mut self, event_loop: &ActiveEventLoop) {
let mut attributes = Window::default_attributes();
attributes.transparent = true;
#[cfg(windows)]
{
use winit::platform::windows::WindowAttributesExtWindows;
attributes = attributes.with_clip_children(false);
}

let window = Arc::new(event_loop.create_window(attributes).unwrap());

let gfx_state = GfxState::new(Arc::clone(&window));
Expand Down

0 comments on commit fb7ef9f

Please sign in to comment.