Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chrign opened this issue Jan 27, 2018 · 0 comments
Closed

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

chrign opened this issue Jan 27, 2018 · 0 comments
Labels
B - bug Dang, that shouldn't have happened C - waiting on author Waiting for a response or another PR D - hard Likely harder than most tasks here DS - windows P - normal Great to have
Milestone

Comments

@chrign
Copy link

chrign commented Jan 27, 2018

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,
        }
    });
}
@chrign chrign changed the title with_visibility(false) followed by windows.show() hangs with_visibility(false) followed by window.show() hangs Jan 27, 2018
@tomaka tomaka added B - bug Dang, that shouldn't have happened DS - windows labels Jan 27, 2018
@francesca64 francesca64 added C - waiting on author Waiting for a response or another PR D - hard Likely harder than most tasks here P - normal Great to have labels May 6, 2018
@francesca64 francesca64 added this to the EventsLoop 2.0 milestone May 6, 2018
@Osspial Osspial closed this as completed Apr 7, 2019
tmfink pushed a commit to tmfink/winit that referenced this issue Jan 5, 2022
Document the remainder of the `pathfinder_renderer` API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened C - waiting on author Waiting for a response or another PR D - hard Likely harder than most tasks here DS - windows P - normal Great to have
Development

No branches or pull requests

4 participants