-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update winit to 0.30 #220
base: dev
Are you sure you want to change the base?
Update winit to 0.30 #220
Conversation
- Update winit example to use `run_app` - Update winit example to proxy `MenuEvent`
hi, any idea why the events are not caught? the menu doesn't appear in your updated example. it works when in my app i also have other events which work fine (listening a websocket and firing a notification) with (windows 11 24H2) |
Weird, running on Windows 10 22H2 and it appears to work correctly for me. When I run with:
I can view and click the menu:
The click on the tray icon is a I'm not sure what to tell you about |
- Bump eframe to 0.30 to match winit versions
@poyhen I did notice when looking at the eframe example the events seem delayed. |
winit 0.29 seems to work fine, it happens on 0.30 series so not entirely sure whats going on considering it works fine on your windows 10 22h2. haven't tested egui yet i can try that one tomorrow |
@moshen yup similar issue there with egui. tried with a few version and they seem to bump to winit 0.30 in their 0.29 release (https://github.com/emilk/egui/blob/master/crates/egui-winit/CHANGELOG.md#0290---2024-09-26---winit-030) and can reproduce same issue with it. it seems the change in winit 0.30 to use .run_app instead of .run has different behavior |
@poyhen I was looking at my project and I was using winit 0.30.5, and I saw this release w/ notes for 0.30.6 :
When I force 0.30.6+ I see the behavior you're referring to. The tray icon context menu no longer works. |
* Based on tauri-apps/tray-icon#220 Signed-off-by: Richard Zak <[email protected]>
* Based on tauri-apps/tray-icon#220 Signed-off-by: Richard Zak <[email protected]>
* Based on tauri-apps/tray-icon#220 Signed-off-by: Richard Zak <[email protected]>
* Based on tauri-apps/tray-icon#220 Signed-off-by: Richard Zak <[email protected]>
@polyhen , This appears to have been fixed in winit 0.30.8: |
Sorry, forgot to test the linux build 😬 Kind of still a newbie with Rust stuff |
I have no idea what I'm looking at here: |
Just ignore the covector workflow. 🤷 |
can confirm it works now. thanks a lot for the update. your pr helped me a lot! |
run_app
MenuEvent
I wasn't sure about a couple of things re cross platform because I don't have linux or mac setup to test on.
I also omitted
event_loop.set_control_flow(ControlFlow::Wait);
as it appearsControlFlow::Wait
is the default.