diff options
author | Ken Moore <moorekou@gmail.com> | 2016-02-04 10:33:35 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-02-04 10:33:35 -0500 |
commit | c13dec711ae8cbdafb9fb72a4ae16c7d2e183ea2 (patch) | |
tree | 697c271f02f83a3af98d16afc1869ba844c12348 /lumina-desktop | |
parent | Fix a bug linking when an older libLumina is installed on the (diff) | |
download | lumina-c13dec711ae8cbdafb9fb72a4ae16c7d2e183ea2.tar.gz lumina-c13dec711ae8cbdafb9fb72a4ae16c7d2e183ea2.tar.bz2 lumina-c13dec711ae8cbdafb9fb72a4ae16c7d2e183ea2.zip |
Quick patch to skip the desktop removal routine if the number of available X monitors is 0 (displayport/4K issue?).
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/LSession.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index 4e644792..7885b9b9 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -512,6 +512,8 @@ void LSession::updateDesktops(){ } if(!firstrun){//Done right here on first run //Now go through and make sure to delete any desktops for detached screens + if(DW->screenCount()<1){ return; } //stop here - no screens available temporarily (displayport/4K issue) + for(int i=0; i<DESKTOPS.length(); i++){ if(DESKTOPS[i]->Screen() >= DW->screenCount()){ qDebug() << " - Close desktop on screen:" << DESKTOPS[i]->Screen(); |