aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-10-05 17:56:20 -0400
committerKen Moore <ken@pcbsd.org>2016-10-05 17:56:20 -0400
commit8ff34b38ac1f8f7be5967670978ff35b7da1f9d7 (patch)
treeb59d94a503da058a34bb15c2467b844749567a1e /src-qt5/core/lumina-desktop/LPanel.cpp
parentAdd a new Lumina project: desktop-utils/lumina-calculator (diff)
parentConvert over the desktop/panel settings to be based on screen ID instead of s... (diff)
downloadlumina-8ff34b38ac1f8f7be5967670978ff35b7da1f9d7.tar.gz
lumina-8ff34b38ac1f8f7be5967670978ff35b7da1f9d7.tar.bz2
lumina-8ff34b38ac1f8f7be5967670978ff35b7da1f9d7.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/lumina-desktop/LPanel.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LPanel.cpp b/src-qt5/core/lumina-desktop/LPanel.cpp
index bf063a31..b0abf498 100644
--- a/src-qt5/core/lumina-desktop/LPanel.cpp
+++ b/src-qt5/core/lumina-desktop/LPanel.cpp
@@ -6,6 +6,8 @@
//===========================================
#include "LPanel.h"
#include "LSession.h"
+#include <QScreen>
+
#include "panel-plugins/systemtray/LSysTray.h"
#define DEBUG 0
@@ -26,7 +28,8 @@ LPanel::LPanel(QSettings *file, int scr, int num, QWidget *parent) : QWidget(){
screennum = scr;
panelnum = num; //save for later
screen = LSession::desktop();
- PPREFIX = "panel"+QString::number(screennum)+"."+QString::number(num)+"/";
+ QString screenID = QApplication::screens().at(screennum)->name();
+ PPREFIX = "panel_"+screenID+"."+QString::number(num)+"/";
defaultpanel = (LSession::handle()->screenGeom(screennum).x()==0 && num==0);
horizontal=true; //use this by default initially
hidden = false; //use this by default
bgstack15