xfce-panel does not honor "primary display" setting

Bug #1596751 reported by Gab
68
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Xfce4 Panel
Fix Released
Wishlist
xfce4-panel (Ubuntu)
Fix Released
Undecided
Unassigned
xfce4-settings (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In a dual monitor configuration xfce4-panel is always placed on the rightmost monitor, regardless of which monitor is configured as "primary" in xfce4-display-settings.

Attached the screenshot of my xfce4-display-settings. xfce-panel appears on "monitor 1" named SDC 15". I expect to find it on "monitor2" named Dell Inc 22".

lsb-release:
Description: Ubuntu 16.04 LTS
Release: 16.04

Revision history for this message
Gab (contini-mailing) wrote :
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

The panel can't just follow the primary monitor because that would prevent people from having panels on every monitor.

Instead the output configuration is done per panel. Right click the panel -> panel -> panel preferences, and then select the output you want.

Revision history for this message
Gab (contini-mailing) wrote :

Your opinion disagres with the xfce4-settings documentation:

http://docs.xfce.org/xfce/xfce4-settings/display

See section "Primary display":

"Check this option to provide a hint to panels, docks and the desktop that the selected display is the primary display."

If you want panels on every monitor you could choose not to have a primary display selected.

Your proposed behavior anyway is not user friendly. After configuring your primary monitor in xfce4-settings you have to enter the panel settings again and configure the monitor where you want the panel. If this is true for each software (panel, docks, icons) you have a lot of configuration to do when you plug in a larger monitor (but only on your right, if the monitor is on the left you're a lucky guy).

I guess this is linked to a long running xfce bug that never made it to xfce4-panel.

https://bugzilla.xfce.org/show_bug.cgi?id=8328

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Under your proposal, how would Xfce know which monitor to put which panel on, if no primary monitor was selected?

Revision history for this message
Gab (contini-mailing) wrote :

My complete proposal is the following:
 * if the field "Output" in "panel -> panel preferences" is set to something else that "Automatic" honor the user choice.
 * if the field "Output" in "panel -> panel preferences" is set to "Automatic" place the panel in the display marked as "primary".
 * if the field "Output" in "panel -> panel preferences" is set to "Automatic" and no primary display is set choose the rightmost-topmost panel (current behavior).

I've found a similar open bug in xfce4 issue tracker (with patch attached):
https://bugzilla.xfce.org/show_bug.cgi?id=9338

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Seems reasonable, but note that isn't the current behavior of the "automatic" setting. It positions the panels based on monitor number (according to Gdk), but the monitor numbers change if you rearrange the monitors' logical positions, which is what causes the behavior you see. The output selection code was added specifically to fix this problem, because output names do not change if you rearrange the monitors.

It should be very easy to add a pseudo-output called "Primary" which would lock the panel to the primary monitor, regardless of which one it is.

Revision history for this message
Gab (contini-mailing) wrote :

Ok, for about one minute let's stop being programmers and let's think as a normal user.
So i plug-in my monitor. The xfce4-display-settings pops up automatically, I select a display i thick the primary checkbox, i want my panel goes there. I may not know what is the display 1 in gdk.

That said the pseudo-output "Primary" is better than nothing (I imagine you want a different pseudo-output because you don't want to change the default behavior).

Can you mark this bug as Triaged? When I have some time i can try to study the problem and prepare a patch for it. Maybe you can give me some direction on what to look.

Revision history for this message
Gab (contini-mailing) wrote :

Ah i forgot to say: if I specify the second monitor as output display, and i unplug the monitor the panel disappears...

I understand why, but really... the actual behavior is not user friendly.

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

I don't have the access level to mark this as triaged. You will need to propose any patch upstream. The first thing to do would be to open a bug on the Xfce tracker and set a bug watch here on the remote bug. After that you will need to propose your patch on the mailing list.

The automatic setting cannot be removed as doing so would break monitor spanning panels. I would be in favour on a new pseudo-output though, if it does not cause too many problems to implement it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xfce4-panel (Ubuntu):
status: New → Confirmed
Changed in xfce4-panel:
importance: Unknown → Wishlist
status: Unknown → In Progress
Revision history for this message
marmottenz (pierre-lonchampt-4) wrote :

My install has also behaviors which I find "buggy" and which I believe may be related - I attach for info if it helps the developers:

my displays are "mirrored" by default even though this option is not ticked.
http://i.imgur.com/w9q87Bt.png

the panel displays itself on the other monitor than the primary one. The primary one is the laptop (always on), the secondary on is the dell (not always plugged)
http://i.imgur.com/ptD3vmE.png

Changed in xfce4-panel:
status: In Progress → Fix Released
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Fixed in version 4.12.2-1ubuntu1 (18.04 LTS).

4.12.2
======
- Feature: Support for RandR's "primary monitor"
- ...

Changed in xfce4-panel (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Nick (nick-power) wrote :
Revision history for this message
Nick (nick-power) wrote :

Ok. There is a version 4.12.2 that contains your commit in the hirstory.
I have version 4.12.2 but it does not work...

Revision history for this message
Willem de Groot (gwillem) wrote :

This doesn't work in 4.14.3-1 (Xubuntu 20.04). Setting a display as primary does not move the panels & desktop icons to it, when the other display is positioned left.

Revision history for this message
Daniel Hollocher (chogydan) wrote :

Not sure how to update this bug, since it seems to still be present on 20.04 xubuntu. I added, the settings package, as that is what xfce4-display-settings is a part of.

Changed in xfce4-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
mblythester (mblythester) wrote :

Willem & Daniel, I thought I was having this issue on 22.04, but I found this that fixed it: https://unix.stackexchange.com/a/149477
Turns out that in each panel's preferences, the "Output" property was set to "Automatic". Setting it to "Primary" moved the panels to my preferred display.

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.