glutin_window icon indicating copy to clipboard operation
glutin_window copied to clipboard

Panic when creating basic fullscreen window

Open FlashOnFire opened this issue 2 years ago • 0 comments

Panic when creating a simple fullscreen window

Tested using a simple code in an empty project to isolate :

use piston_window::{PistonWindow, WindowSettings};

fn main() {
    let window: PistonWindow = WindowSettings::new("aaa", [1920, 1080])
        .fullscreen(true)
        .build()
        .unwrap();
}

Result : image

I managed to find where both of the event loops were created :

First : here at the beginning of the creation of the GlutinWindow Permalink image

And here in the window_builder_from_settings function Permalink image

The if check explains why it doesn't happen when using non fullscreen window

FlashOnFire avatar Jun 08 '23 19:06 FlashOnFire