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

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

Open
danutsu opened this issue Jun 20, 2024 · 0 comments

Comments

@danutsu
Copy link
Contributor

danutsu commented Jun 20, 2024

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

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

1 participant