-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Application stuck when closing the window #2532
Comments
Are you sure a5b1a1d doesn't fix the issue? |
I have |
Interesting. I can't reproduce, but I wonder if this may have to do with the Could you try 6948c65? |
I've just tried that. It didn't help… |
That is not a proper fix, since the application may need to exit even without a close request. I believe you are not getting dbg!(&window_event); |
I've added
|
You should be getting 2 destroyed events. One at the very beginning. |
I've moved |
I imagine the boot window we use to initialize the
|
Nope, I'm on X11. But that change does fix the issue. |
Well, then we know it's a |
I think c6d1a0e works around the bug without keeping a ghost window around and also should avoid prematurely exiting applications when a window is in the process of being opened. Could you confirm it works? |
Yes, it does work excellently. I also have a Mac and Windows machines, I could check if this change does break something on other systems, if you want. |
@brcha I have access to those platforms too. I don't see why it would break anything, however. Thanks for the testing! |
You are welcome :) Excellent lib, I am really excited for an Elm style UI in Rust. |
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
I am evaluating the library and I've tried the counter example. When I close the window by clicking on the close button, the application never ends, it just stays running in the background until I kill it manually (Ctrl+C in the terminal). I've added printlns around the iced::application call, and indeed, the "after" println never happens. Here's a screenshot to illustrate that. On the latest release (0.12.1) application terminates normally when the window is closed.
What is the expected behavior?
I would expect the application to terminate when the window is closed.
Version
master
Operating System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: