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

When opening multiple windows on Wayland/Winit, it's not possible to close them separately #5443

Closed
danutsu opened this issue Jun 20, 2024 · 1 comment

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();

Run the program. Attempt to close one of the windows by clicking the "X" button in the window decoration.

Expected: Based on behavior when running on X11, I think the window is supposed to close, even if the other window is still open.

Actual: The window does not close but becomes unresponsive. After clicking "X" on the second window's decoration both windows close and the call to run_event_loop() returns.

@ogoffart
Copy link
Member

Thanks for filling an issue.

This is a known problem with Wayland and winit: #4225
We'll be hopefully get that fixe din the next release
Closing this issue as a duplicate, but thanks anyway for reporting.

@ogoffart ogoffart closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2024
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