rust_minifb icon indicating copy to clipboard operation
rust_minifb copied to clipboard

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

Open nuked44 opened this issue 10 months ago • 1 comments

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

nuked44 avatar Aug 27 '23 19:08 nuked44

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.

emoon avatar Aug 28 '23 07:08 emoon