Skip to content

Getting error "interface 'wl_surface' has no event 2" -- on my Wayland Linux machine #12

@biot023

Description

@biot023

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions