flo_draw
flo_draw copied to clipboard
Getting error "interface 'wl_surface' has no event 2" -- on my Wayland Linux machine
I'm working through the "Getting Started" guide and have only got this far:
// ./src/main.rs
use flo_draw::*;
use flo_draw::canvas::*;
fn main() {
with_2d_graphics(|| {
let canvas = create_canvas_window("Hello, world!");
canvas.draw(|gc| {
gc.new_path();
gc.move_to(200.0, 200.0);
gc.line_to(800.0, 200.0);
gc.line_to(500.0, 800.0);
gc.line_to(200.0, 200.0);
gc.fill_color(Color::Rgba(0.0, 0.0, 0.8, 1.0));
gc.fill();
});
});
}
When I try cargo run with this code, it seems to create an application (I can see a 'cog' icon when I try to alt-tab to it but it never appears) and I see this error in the console:
interface 'wl_surface' has no event 2
Can anybody advise me on how best to fix this? Thank you, Doug.