aclysma/skulpin

Creating a window causes blanking of Firefox and KDE taskbar resize

lf- opened this issue · 1 comments

lf- commented

Hi!

I have this weird bug with neovide, which I have reduced to happen on Skulpin window creation. A minimized repro is available at https://github.com/lf-/skulpin-repro

The source is reproduced below, run with the master version of Skulpin, with the skulpin_sdl2 feature.

use skulpin::sdl2;
use std::thread::sleep;
use std::time::Duration;

fn main() {
    let context = sdl2::init().expect("Failed to initialize sdl2");
    let video_subsystem = context
        .video()
        .expect("Failed to create sdl video subsystem");

    let mut sdl_window = video_subsystem
        .window("Neovide", 300, 300)
        .build()
        .expect("Failed to create window");
    sleep(Duration::from_secs(20));
    return;
}

Environment infos:

dev/neovide - [main] » pacman -Q linux nvidia xorg-server firefox
linux 5.10.10.arch1-1
nvidia 460.39-1
xorg-server 1.20.10-3
firefox 85.0-1

I am on KDE in X11 mode on Arch Linux. Nothing in dmesg/Xorg logs of interest. GPU is a GTX 1060 6GB.

Here's a video of this strangeness, with neovide, but it also happens with the repro above:

2021-02-04.01-44-24.mp4

Please let me know if there is anything I can do to help debug this.

lf- commented

Sorry for bothering you! This is in fact an SDL bug reproducible with a simple C program even. I'm going to see if I can find it upstream.