Submenu items not triggering activate events under specific conditions

Bug #1348147 reported by Peter Levi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
indicator-appmenu (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Problem appears in indicator menus in Ubuntu 14.04, and it is NOT present in Ubuntu 12.04.
The bug can be seen even in official indicators like the network manager.

We have: "Indicator menu / Submenu / Submenu item". (e.g. Network manager / VPN Connections / Configure VPN...).

The submenu item does not trigger "activate" and "button-press-events", if the user changes between right and left while clicking on the way to the submenu item and if they also don't explicitly click the submenu.

For example these combinations WORK:
* Click indicator with any button/ Explicitly click with any button to open submenu / Click submenu item with any button
* Left-click indicator / Just hover to open submenu (do not click) / Left-click submenu item
* Right-click indicator/Just hover to open submenu (do not click) / Right-click submenu item

Any other combination DOESN'T work, for example:

* Left-click indicator / Just hover to open submenu / Right-click submenu item
* Right-click indicator / Just hover to open submenu / Left-click submenu item

These GNOME bugs might be relevant:
https://bugzilla.gnome.org/show_bug.cgi?id=533492
https://bugzilla.gnome.org/show_bug.cgi?id=695488

But this might be not be a bug in GTK, but in the way the indicator menu is presented. I had a very similar problem with right-click popup menus in my own application Variety and I managed to fix them in my own code. Here is the bugreport, with solution described: https://bugs.launchpad.net/variety/+bug/1044909

Citing the solution from this bugreport: "This was solved by calling menu.popup(None, None, _compute_position, None, 0, event.time) instead of menu.popup(None, None, _compute_position, None, event.button, event.time) - for some reason if event.button was passed as the menu trigger, then the same button that triggered the menu (right mouse button in our case) was also the only button that successfully triggered the submenu items"

Tags: click submenu
Revision history for this message
Peter Levi (peterlevi) wrote :

libindicator-appmenu version: 13.01.0+14.04.20140404-0ubuntu1

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-appmenu (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.