From c13dec711ae8cbdafb9fb72a4ae16c7d2e183ea2 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 4 Feb 2016 10:33:35 -0500 Subject: Quick patch to skip the desktop removal routine if the number of available X monitors is 0 (displayport/4K issue?). --- lumina-desktop/LSession.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; iScreen() >= DW->screenCount()){ qDebug() << " - Close desktop on screen:" << DESKTOPS[i]->Screen(); -- cgit