You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that messages not handled in the event_loop e.g: WM_NOTIFY go to the default handler. Is there a way to provide a callback to handle such cases?
There's not presently any API for that. The simplest change would be to allow you to provide a fall-through callback, but that would mean that any time a new event handler were added to winit, it would be a breaking change. What sort of API would you like for this?
what if the new callback has precedence over the existing loop? It could return a Handled/Not handled, and in the second case, just run the existing wnd_proc. This way we prevent future breaking changes because of winit handling new events
Activity
francesca64 commentedon Apr 11, 2018
There's not presently any API for that. The simplest change would be to allow you to provide a fall-through callback, but that would mean that any time a new event handler were added to winit, it would be a breaking change. What sort of API would you like for this?
chrde commentedon Apr 11, 2018
what if the new callback has precedence over the existing loop? It could return a
Handled/Not handled, and in the second case, just run the existing wnd_proc. This way we prevent future breaking changes because ofwinithandling new eventsOsspial commentedon Apr 24, 2019
This behavior should be supported by the Window Subclassing API. As such, I don't think we need to add an equivalent API into Winit.
Auto merge of rust-windowing#452 - berkus:fix/simd-arm-shuffle, r=jdm