Skip to content

with_visibility(false) followed by window.show() hangs #391

@chrign

Description

@chrign

On Windows the following code opens a window but the code hangs at the window.show() line.

extern crate winit;

fn main() {
    let mut events_loop = winit::EventsLoop::new();
    let window = winit::WindowBuilder::new().with_visibility(false).build(&events_loop).unwrap();
    window.show();

    events_loop.run_forever(|event| {
        match event {
            winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => winit::ControlFlow::Break,
            _ => winit::ControlFlow::Continue,
        }
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happenedC - waiting on authorWaiting for a response or another PRD - hardLikely harder than most tasks hereDS - windowsP - normalGreat to have

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions