diff options
author | Ken Moore <ken@pcbsd.org> | 2016-10-05 17:56:20 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-10-05 17:56:20 -0400 |
commit | 8ff34b38ac1f8f7be5967670978ff35b7da1f9d7 (patch) | |
tree | b59d94a503da058a34bb15c2467b844749567a1e /src-qt5/core/lumina-desktop/LPanel.cpp | |
parent | Add a new Lumina project: desktop-utils/lumina-calculator (diff) | |
parent | Convert over the desktop/panel settings to be based on screen ID instead of s... (diff) | |
download | lumina-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.cpp | 5 |
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 |