Secondary monitor menus not opening on mouseover

Bug #1625780 reported by Larry Price on 2016-09-20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
unity (Ubuntu)

Bug Description

I have a multi-monitor setup with my laptop screen as the main monitor and an external screen as my secondary monitor. On the primary monitor, the titlebar menus work correctly. On the external monitor, clicking on a menu or indicator works, but moving the mouse does not change which item is open.

For instance, if I click the Network indicator and then move my mouse over the battery indicator, I expect the battery menu to open and the network menu to close behind it. In this case, the network menu remains open, and I have to manually click the battery menu to open it.

Distro: Yakkety
Unity version: 7.5.0+16.10.20160906.1-0ubuntu1

Larry Price (larryprice) wrote :

I've confirmed this on two different machines on zesty as well.

Launchpad Janitor (janitor) wrote :

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

Changed in unity (Ubuntu):
status: New → Confirmed
LAva (lavalanche) wrote :

I think I figured out why the mouse over is not working on the second monitor.

Unity creates a PanelView for each monitor, but all PanelViews register a mouse tracker under the same name, so only the first one works.

This happens, because the PanelView uses the monitor number to generate the panel name, which is not yet properly initialized in the Constructor.

But even if it was know at this state, the monitor number can change later, if the monitor setup is modified. Using the monitor number might not be the best idea.

I exchanged the monitor number with a unique number and it looks like it is working now.

The patch is attached and you can find it also here:

I'm not sure if this is the proper solution, but it might be first step in fixing this issue.

It looks like the whole mouse tracker system has still some issues left. For example: the unregister is never called, even if a PanelView is destroyed (as far as I can tell).

The attachment "MultiMonitorTrackerFix .diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Larry Price (larryprice) wrote :

Thanks for the patch! I'm going to try to verify this this week and then we'll see if we can take further steps.

Larry Price (larryprice) wrote :

I can confirm that the given patch fixes the issue on my zesty machine. I'll see what I can do to get this moving through the system.

LAva (lavalanche) wrote :

Are there any news on the status of this bugfix?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers