After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699679 - XEvent interrupts popup of GtkMenu
XEvent interrupts popup of GtkMenu
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkMenu
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-05-04 18:51 UTC by Oliver Sauder
Modified: 2018-04-14 23:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Vala example to reproduce GtkMenu popup issue (2.93 KB, text/plain)
2013-05-04 18:51 UTC, Oliver Sauder
Details
Rewritten Vala example to reproduce GtkMenu popup issue (3.07 KB, text/x-vala)
2016-12-13 13:20 UTC, Oliver Sauder
Details

Description Oliver Sauder 2013-05-04 18:51:51 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.
Comment 1 Oliver Sauder 2013-07-13 09:10:13 UTC
I have tested this again with libgtk 3.8.2. Seems issue still exists.
Comment 2 Oliver Sauder 2016-12-13 13:20:36 UTC
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?
Comment 3 Matthias Clasen 2018-02-10 04:55:18 UTC
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.
Comment 4 Matthias Clasen 2018-04-14 23:58:46 UTC
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