I can confirm that even in Ubuntu 15.10 one has to set the 'logind-handle-lid-switch' to false manually. Please switch to use false by default for the Ubuntu 16.04 LTS. The code doesn't need to be changed, its just enough to add the following command into the package installation script:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s false
I can confirm that even in Ubuntu 15.10 one has to set the 'logind- handle- lid-switch' to false manually. Please switch to use false by default for the Ubuntu 16.04 LTS. The code doesn't need to be changed, its just enough to add the following command into the package installation script: power-manager/ logind- handle- lid-switch -n -t bool -s false
xfconf-query -c xfce4-power-manager -p /xfce4-