[panel] The main panel is not on the leftmost monitor in a dual-head setup

Bug #757652 reported by Joel Matthys
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Unity
Incomplete
Undecided
Unassigned
unity-2d
Fix Released
High
Olivier Tilloy
unity (Ubuntu)
Incomplete
Undecided
Unassigned
unity-2d (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: unity

On Ubuntu Natty i386 running 3.8.2-0ubuntu1 (unity-2d-panel), I have side-by-side monitors. The launcher displays in the left display (Display 1), but the button for the spread is on the left side of the right monitor (Display 2). The launcher only appears when I hover over the left edge of Display 2, even though it is in Display 1.

Related branches

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

By 'The button for the spread' do you mean the Ubuntu button? The button which opens up the Dash?

Moreover it would be good if you made a screenshot of this so that developers can understand the situation. Thanks.

Changed in unity:
status: New → Incomplete
Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
samo_nz (samo-nz) wrote :

Also affects me, I have an old Radeon that displays garbage with Unity 3D so am running the official Unity 2D from the Repo's

I Think this could be related to monitor 1(on the card) being on the right hand side of monitor 2

Revision history for this message
Joel Matthys (jwmatthys) wrote :

Thank you samo_nz. That screenshot reflects my problem as well.

Revision history for this message
Joel Matthys (jwmatthys) wrote :

Perhaps a clearer description of this would be: The Ubuntu Button and the Dash are always on different monitors.

Clearly this is undesirable behavior.

samo_nz (samo-nz)
affects: unity → unity-2d
Changed in unity-2d:
status: Incomplete → New
Revision history for this message
Omer Akram (om26er) wrote :

is this also an issue on Unity(3d) you seem to be using unity-2d. If so can you please attach a screenshot of the problem in unity too.

Changed in unity:
status: New → Incomplete
Revision history for this message
Olivier Tilloy (osomon) wrote :

Quick guess: the code that determines where to position which panels relies on the screen numbers only instead of testing which screen is the primary monitor.

summary: - Unity "spread" button on wrong monitor in 2-display setup
+ [panel] The main panel is not on the primary monitor in a dual-head
+ setup
Changed in unity-2d:
importance: Undecided → High
Revision history for this message
Jani Monoses (jani) wrote : Re: [panel] The main panel is not on the primary monitor in a dual-head setup

In addition to the Ubuntu button being on the panel on the other monitor, the window control buttons (close, min, max) appear on that panel too. So the current window has a pair of control buttons on both monitors.
This I did not see on the screenshot attached in comment #2.

Revision history for this message
Jani Monoses (jani) wrote :

A correction: the extra set of buttons appear only for maximized windows. Once I toggle maximization they go away from the second panel.

Revision history for this message
Joel Matthys (jwmatthys) wrote :

@Jani, you may want to file that as a separate bug, as it seems to do with unintended mirroring in the two displays. (Does anyone want the taskbar at all on the secondary monitor? Not me.)

Revision history for this message
Jani Monoses (jani) wrote :

@Joel, you mean the control buttons issue as a separate bug? Indeed there is some overlap in the two panels - I think I should just do a clean install, as configs from gnome-panel / unity may be picked up?
Right now both panels have sound/empathy/time/shutdown, but only second panel has ubuntu button network-manager and me-menu.

Revision history for this message
Olivier Tilloy (osomon) wrote :

@Joel, Jani: let me try to summarize what the expected behaviour is (by design): there should be one panel per monitor. The panel that is on the same monitor as the launcher has additional "features" compared to the panels on the other monitors: it has the ubuntu button that invokes the dash, and it hosts the legacy systray icons. All panels can display the window controls and title, as well as application/system indicators (like sound/datetime/me menu…). The window controls and application title for the active window will appear only in the panel that is on the same screen as the active window.

Now, considering that the launcher must always be on the leftmost monitor (because space for panels, aka struts, can only be reserved at the edges of the virtual desktop), as a consequence the "main" panel (the one that has the ubuntu button and that hosts the systray) should also always be on the leftmost monitor. IIRC the code that handles this tests on the primary monitor rather than the leftmost one, which is probably the cause of the issue.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reproduce with a dual-head setup where the primary monitor is the rightmost one.

Changed in unity-2d:
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

The screen index used to identify screens cannot be used to determine the leftmost monitor.

Revision history for this message
Joel Matthys (jwmatthys) wrote :

@Olivier, that is a very good summary of the issue. I would argue that there are two bugs at play here.

1) Exactly as you have stated, main panel should be on leftmost monitor instead of primary, and

2) Each monitor's panel should only have controls and title for windows maximized in that particular monitor, instead of on both monitors.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Your analysis is correct Joel. Those are technically two separate issues, but they can be fixed in the same bundle as they are very related one with another.

Changed in unity-2d:
assignee: nobody → Olivier Tilloy (osomon)
milestone: none → 3.10
status: Confirmed → In Progress
Revision history for this message
Olivier Tilloy (osomon) wrote :

On second thought I filed a separate bug report for the window controls present on all panels for maximized windows. See bug #771306. I am about to submit a merge request that fixes both issues.

Olivier Tilloy (osomon)
summary: - [panel] The main panel is not on the primary monitor in a dual-head
+ [panel] The main panel is not on the leftmost monitor in a dual-head
setup
Revision history for this message
Gaz Davidson (garethdavidson) wrote :

This applies to Unity 3D on my triple head setup.

As you can see in the attached image, Catalyst Control Center shows that the first output is the leftmost display and second is the rightmost.

Revision history for this message
Omer Akram (om26er) wrote :

seems like bug 742544 is on the same issue and have a few duplicates too.

Revision history for this message
Olivier Tilloy (osomon) wrote :

@Omer: the two bugs are indeed related, even though bug #742544 is about the position of the launcher whereas this one is about the positions of the top panels.

@Gaz: as pointed out by Omer, I think the issue you are experiencing is bug #742544.

Olivier Tilloy (osomon)
Changed in unity-2d:
status: In Progress → Fix Committed
Changed in unity-2d (Ubuntu):
status: New → Fix Committed
Changed in unity-2d:
milestone: 3.10 → 3.8.6
Changed in unity-2d:
status: Fix Committed → Fix Released
Changed in unity-2d (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.