Open Digitalone1 opened 1 year ago
Ctrl+C
in a terminal is a global process interrupt and should be handled by you.
I can confirm that winit
is not producing a CloseRequested
event when pressing Cmd+Q
on macOS. We should report that there.
I can confirm that
winit
is not producing aCloseRequested
event when pressingCmd+Q
on macOS. We should report that there.
I don't know if it can be of any help, but I noticed that Cmd+Q
doesn't even let Application::run
correctly return from the invocation.
I can confirm that
winit
is not producing aCloseRequested
event when pressingCmd+Q
on macOS. We should report that there.
This is a pretty important feature for my app since several configurations must be saved before exiting. At the same time I don't want to put pressure on you to solve this in the short term, but I was wondering if you could give me some hints that can help me fix it @hecrj
Reference some related issues: https://github.com/rust-windowing/winit/issues/1992 https://github.com/rust-windowing/winit/issues/2776
Is there an existing issue for this?
Is this issue related to iced?
What happened?
As pointed out in #195 and https://github.com/GyulyVGC/sniffnet/issues/291 the CloseRequested is not triggered when:
ctrl+c
is typed from the command linecmd+q
is typed on MacOSYou are discussing there, but maybe it's better to make a dedicated issue.
What is the expected behavior?
Trigger the CloseRequested event, not only on the two points listed above, but on every attempt to close the application.
Version
master
Operating System
Linux
Do you have any log output?