aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LDesktop.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/LDesktop.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/LDesktop.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LDesktop.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp
index 980b3e5e..8258dbb6 100644
--- a/src-qt5/core/lumina-desktop/LDesktop.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktop.cpp
@@ -12,11 +12,13 @@
#include "LWinInfo.h"
#include "JsonMenu.h"
+#include <QScreen>
+
#define DEBUG 0
LDesktop::LDesktop(int deskNum, bool setdefault) : QObject(){
-
- DPREFIX = "desktop-"+QString::number(deskNum)+"/";
+ QString screenID = QApplication::screens().at(deskNum)->name();
+ DPREFIX = "desktop-"+screenID+"/";
desktopnumber = deskNum;
desktop = QApplication::desktop();
defaultdesktop = setdefault; //(desktop->screenGeometry(desktopnumber).x()==0);
bgstack15