[panel] on a multi monitor setup the panel length appears to be calculated with the screen in focus at the time of execution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-2d (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Release:
Description: Ubuntu 11.10
Release: 11.10
Package:
unity-2d-panel:
Installed: 4.12.0-0ubuntu1
Candidate: 4.12.0-0ubuntu1
Version table:
Expected behavior:
The panel calculates it's width for each monitor on which it is displayed covering the span from left edge to right.
Actual Behavior:
When I log in with an external monitor connected the panel at the top might be in one of two possible configurations. Either the larger screen will have a shortened panel (http://
More importantly when I kill and restart the panel it will size itself to whichever screen has focus. That's how I was able to take screens of both.
Other relevant information:
I use xmonad with the following desktop and xsessions
#/usr/share/
[GNOME Session]
Name=Xmonad session
RequiredCompone
RequiredProvide
DefaultProvider
DefaultProvider
DefaultProvider
#/usr/share/
[Desktop Entry]
Name=Xmonad GNOME
Comment=Tiling window manager
TryExec=
Exec=gnome-session --session=xmonad
Type=XSession
xmonad:
Installed: 0.9.2-2build1
Candidate: 0.9.2-2build1
Version table:
Changed in unity-2d (Ubuntu): | |
status: | Confirmed → Invalid |
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. doc.qt. nokia.com/ latest/ qdesktopwidget. html#screenGeom etry )
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://
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.