slint icon indicating copy to clipboard operation
slint copied to clipboard

Showing two windows at once on Winit/Skia on Wayland/GNOME causes one to be incorrectly painted initially

Open danutsu opened this issue 1 year ago • 0 comments

Repro: Start with the Slint Rust template. Ensure you are using Winit as a backend and Skia as a renderer.

Add a slint! block with a trivial second component (Just a Text). Show both of them at once using:

ui1.show();
ui2.show();
slint::run_event_loop();

Screenshot from 2024-06-18 14-34-28

Expected: the two windows show up properly.

Actual: at least one of the windows shows up incorrectly painted. Exactly what the outcome is varies from attempt to attempt and seems to depend on the position of other windows on the desktop (I believe Gnome's Mutter compositor chooses where to display the windows based on that).

Note that touching the windows (resize or move) fixes the paint issues and they seem to work fine afterwards.

Platform: Debian Stable 12, GNOME 43.9, Rust

danutsu avatar Jun 20 '24 13:06 danutsu