muda icon indicating copy to clipboard operation
muda copied to clipboard

Fix GTK context menu

Open rtbo opened this issue 1 year ago • 1 comments

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.

rtbo avatar May 05 '24 21:05 rtbo

Clippy errors are unrelated

rtbo avatar May 06 '24 20:05 rtbo

Cool, It works!

How did you find out it was the time field?

pewsheen avatar May 07 '24 09:05 pewsheen

By the way, you'll need to sign the commit and add a change log file so that it can be merged

pewsheen avatar May 07 '24 10:05 pewsheen

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.

rtbo avatar May 07 '24 20:05 rtbo