Attached is a working patch for this issue which assigns a screen value
to the instantiated Unity2dPanel which is then used to determine the
panel's geometry in place of the widget itself.
A few notes:

1. this patch was created against a clean branch from 
lp:ubuntu/oneiric/unity-2d, so I'm not clear if it will apply cleanly to the 
latest precise branch/dev. I'm happy to look into it.
2. the default value for m_screen might be better as -1 since the QT docs 
suggest that the screenGeometry will default in that case ( 
http://doc.qt.nokia.com/latest/qdesktopwidget.html#screenGeometry )
3. it's only been tested on my desktop setup and not the desktop environment 
this will most likely be run under ( gnome fallback? )

I've done my best to adhear to the coding guidelines I found in the
repository, but any and all feedback is welcome/greatly appreciated.

** Patch added: "use_screen.patch"
   
https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/877012/+attachment/2559505/+files/use_screen.patch

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

Title:
  [panel] on a multi monitor setup the panel length appears to be
  calculated with the screen in focus at the time of execution

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

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

Reply via email to