summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-24 03:27:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-24 03:27:39 +0000
commit4fba67867725a9c869f48e1d98355867ff23cbde (patch)
tree84ad501d3dad814a4a4f99fee38a0550cd1e7e05
parent46a29a2798e273aeed727eaa0b1dfa48e21436a7 (diff)
downloadtdelibs-4fba67867725a9c869f48e1d98355867ff23cbde.tar.gz
tdelibs-4fba67867725a9c869f48e1d98355867ff23cbde.zip
Stabilize fallback of display configuration
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1249203 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--krandr/libkrandr.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/krandr/libkrandr.cc b/krandr/libkrandr.cc
index cf4aa124d..0a8e5e571 100644
--- a/krandr/libkrandr.cc
+++ b/krandr/libkrandr.cc
@@ -449,6 +449,9 @@ TQPoint KRandrSimpleAPI::applySystemwideDisplayConfiguration(TQString profilenam
if (screenInfoArray.count() > 0) {
applySystemwideDisplayConfiguration(screenInfoArray, FALSE);
}
+ destroyScreenInformationObject(screenInfoArray);
+ screenInfoArray = readCurrentDisplayConfiguration();
+ ensureMonitorDataConsistency(screenInfoArray);
ret = primaryScreenOffsetFromTLC(screenInfoArray);
destroyScreenInformationObject(screenInfoArray);
}