Clicking on "Close window" via the windows task bar is ignored in winit_inputhelper.
The CloseRequested event is sent between two steps, after an AboutToWait and before a `NewEvents(), so when theNewEvents(_)arrives, the step begins and resetWinitInputHelper::close_requestedtofalse`.
Thankyou for the thorough investigation!
Its not clear to me if winit is breaking its contract by returning events between an AboutToWait and a NewEvent, I'll raise an issue on their repo to get it clarified.
Clicking on "Close window" via the windows task bar is ignored in winit_inputhelper. The
CloseRequested
event is sent between two steps, after anAboutToWait
and before a `NewEvents(), so when the
NewEvents(_)arrives, the step begins and reset
WinitInputHelper::close_requestedto
false`.With
ControlFlow::Poll
:Without
ControlFlow::Poll
: