Is clicking the close box on a window supposed to generate a CloseRequested event. #3841
Unanswered
John-Nagle
asked this question in
Q&A
Replies: 3 comments 1 reply
-
When in the window life cycle do these events appear?
When is it time to leave the event loop? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I need to test some more, but I seem to be able to close the window without getting either CloseRequested or Destroyed. But egui may be eating those events; it gets first look at them and can consume them. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can test with winit example, should be much simpler than egui. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't seem to be getting CloseRequested events on Linux/X11 when the close "x" on the window is clicked. Or they're being consumed/lost in egui-winit, or something.
Code looks like:
I never get that "Quitting" log message. Other events work fine. Am I looking for the wrong event type?
Beta Was this translation helpful? Give feedback.
All reactions