GNOME Bugzilla – Bug 699679
XEvent interrupts popup of GtkMenu
Last modified: 2018-04-14 23:58:46 UTC
Created attachment 243305 [details] Vala example to reproduce GtkMenu popup issue When a GtkMenu opens when a XEvent for a KeyPress occurs the popup is not shown at all. If it opens after the last XEvent has been processed (so after all keys are left) the GtkMenu opens just fine. This seemed to work in GTK 3.6.0 but appeared to not work anymore since version 3.6.4. For information do I use X.org 7.7. I have attached a quick sample written in Vala to reproduce the issue.
I have tested this again with libgtk 3.8.2. Seems issue still exists.
Created attachment 341880 [details] Rewritten Vala example to reproduce GtkMenu popup issue This issue still exists on newer version - tested again on 3.18.9. I have rewritten the sample so it easier to reproduce the issue. What is different is in new version that following assert message occurs: GLib-GObject-CRITICAL **: g_object_set_data: assertion 'G_IS_OBJECT (object)' failed I have debugged through the popup code and there seems to be a race concerning grabbing of focus. While debugging the popup always showed up. Anyone has an idea what causes this and how to fix it?
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla. If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab: https://gitlab.gnome.org/GNOME/gtk/issues/new