From b3d46b989c74f02005941e92b54fd59377abbd8e Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 5 Mar 2015 12:31:36 -0500 Subject: Update the lumina-xconfig screen resolution detection routine to be a bit more flexible with the output of xrandr - it seems like it can use a couple different output formats. --- lumina-xconfig/MainUI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lumina-xconfig/MainUI.cpp') diff --git a/lumina-xconfig/MainUI.cpp b/lumina-xconfig/MainUI.cpp index a4131649..7a4f5174 100644 --- a/lumina-xconfig/MainUI.cpp +++ b/lumina-xconfig/MainUI.cpp @@ -57,7 +57,9 @@ void MainUI::UpdateScreens(){ cscreen = ScreenInfo(); //Now create a new structure } QString dev = info[i].section(" ",0,0); //device ID - QString devres = info[i].section("(",0,0).split(" ",QString::SkipEmptyParts).last(); + //The device resolution can be either the 3rd or 4th output - check both + QString devres = info[i].section(" ",2,2); + if(!devres.contains("x")){ devres = info[i].section(" ",3,3); } qDebug() << " - ID:" <