Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nuked44 opened this issue Aug 27, 2023 · 1 comment
Open

Comments

@nuked44
Copy link

nuked44 commented Aug 27, 2023

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
Copy link
Owner

emoon commented Aug 28, 2023

I haven't used WSL2, but is it running under Wayland? Then it might be the same issue as this #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants