aboutsummaryrefslogtreecommitdiff
path: root/lumina-xconfig/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-05 12:31:36 -0500
committerKen Moore <ken@pcbsd.org>2015-03-05 12:31:36 -0500
commitb3d46b989c74f02005941e92b54fd59377abbd8e (patch)
tree17a1aafd784463af19c6e9caece1c575edbb4310 /lumina-xconfig/MainUI.cpp
parentFix a bug with resolving sym-links during the search for ZFS snapshots. Now i... (diff)
downloadlumina-b3d46b989c74f02005941e92b54fd59377abbd8e.tar.gz
lumina-b3d46b989c74f02005941e92b54fd59377abbd8e.tar.bz2
lumina-b3d46b989c74f02005941e92b54fd59377abbd8e.zip
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.
Diffstat (limited to 'lumina-xconfig/MainUI.cpp')
-rw-r--r--lumina-xconfig/MainUI.cpp4
1 files changed, 3 insertions, 1 deletions
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:" <<dev;
//qDebug() << " - Res:" << devres;
if( !devres.contains("x") || !devres.contains("+") ){ devres.clear(); }
bgstack15