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:
http://bazaar.launchpad.net/~lavalanche/unity/MultiMonitorTrackerFix/revision/4218

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).  

** Patch added: "MultiMonitorTrackerFix .diff"
   
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1625780/+attachment/4810214/+files/MultiMonitorTrackerFix%20.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1625780

Title:
  Secondary monitor menus not opening on mouseover

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1625780/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to