emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
980 stars 92 forks source link

Window is borderless even though borderless is set to false on WSL2 #326

Open nuked44 opened 10 months ago

nuked44 commented 10 months ago

minifb: 0.25.0 rustc: 1.73.0-beta.1 wsl2 ubuntu

minimal code example:

use minifb::{Window, WindowOptions};

fn main() {
    let mut window = Window::new("test", 640, 320, WindowOptions{
        borderless: false,
        ..WindowOptions::default()
    }).expect("failed to open window");

    while window.is_open() {
        window.update();
    }
}

executing this code opens a borderless window, in the terminal I get the warning: Failed to create server-side surface decoration: Missing

emoon commented 10 months ago

I haven't used WSL2, but is it running under Wayland? Then it might be the same issue as this https://github.com/emoon/rust_minifb/issues/273

The TL;DR is that I have lots of Wayland issues and the problem is that all of those changes has been contribs to the library, but no update has been done in this area to fix the issues. I will have to take a stab it myself at some point when I have time.