I have a second monitor that I sometimes connect to my laptop. It is situated to the left of the laptop. When I connect the second monitor, and make the laptop monitor be primary, my panels still show up on the second monitor. I can "fix" the vertical panel by moving it to the right-hand side, but I would even like this panel to be on the left-hand side of the right-hand monitor. So, could xfce4-panel use the new hint that was introduced in 4.12 to keep panels on the primary monitor?
I have more to add to this. On xbuntu 15.10 this worked ok for me using: xrandr --output eDP1 --auto --primary --output VGA1 --auto --left-of eDP1 However it fails on xbuntu 16.04. A few things I found out while digging into this: * I do not have an LVDS1 monitor, but eDP1 and VGA1. When I was playing with this I got one error saying that LVDS1 was not defined so the panel was defaulting to original setup. * Automatic and primary monitor in panel prefs do not seem to work in that the secondary monitor becomes monitor-0 (see below) * My work around is to run the following each time I plugin or remove a monitor: #!/bin/bash # Simple script to handle multiple monitors. # # ski-141015: initial version # ski-160517: modified for version 16.04 - added xfconf-query # if (xrandr | grep "VGA1 connected"); then xrandr --output eDP1 --auto --primary --output VGA1 --auto --left-of eDP1 xfconf-query -c xfce4-panel -p /panels/panel-0/output-name -s monitor-1 echo "two monitors set up" else xrandr --output VGA1 --off xrandr --fb 1920x1080 --output eDP1 --auto --primary xfconf-query -c xfce4-panel -p /panels/panel-0/output-name -s monitor-0 echo "one monitor set up" fi Hope this helps out.
That works. I don't know whether this is new behaviour or whether some change was made. No matter what, this bug can be closed as "WORKSFOR ME".