Comment 3 for bug 1625780

Revision history for this message
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: 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).