piston_window icon indicating copy to clipboard operation
piston_window copied to clipboard

Example doesn't run on Gnome with Wayland

Open juchiast opened this issue 7 years ago • 0 comments

I'm using Fedora 25 with Gnome on Wayland backend. piston_window 0.66 doesn't produce any visible window (it doesn't crash). Here what I run:

extern crate piston_window;

use piston_window::*;

fn main() {
    let mut window: PistonWindow =
        WindowSettings::new("Hello Piston!", [640, 480])
        .exit_on_esc(true).build().unwrap();
    while let Some(e) = window.next() {
        window.draw_2d(&e, |c, g| {
            clear([1.0; 4], g);
            rectangle([1.0, 0.0, 0.0, 1.0], // red
                      [0.0, 0.0, 100.0, 100.0],
                      c.transform, g);
        });
    }
}

juchiast avatar Jun 08 '17 10:06 juchiast