Fix GTK context menu
This is a fix for tauri-apps/tauri#9658.
I noticed somehow that setting the time field of the GDK event prevents GTK from closing the menu on right click release.
Clippy errors are unrelated
Cool, It works!
How did you find out it was the time field?
By the way, you'll need to sign the commit and add a change log file so that it can be merged
How did you find out it was the time field?
I made a minimal GTK app in C that mimics muda menu creation.
I could reproduce the issue easily, and checked that passing the original right click event to popup_at_rect makes it behave normally.
Then I played with the fields of the synthetized event to find out which one triggers the expected behavior.