Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb43880' into 'master'
[lipsticksettings] also write physicalDotsPerInchX/Y to dconf. JB#43880

See merge request mer-core/lipstick!100
  • Loading branch information
pvuorela committed Dec 11, 2018
2 parents 2d8cd5d + 0490f0c commit f8fa384
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lipsticksettings.cpp
Expand Up @@ -105,6 +105,16 @@ void LipstickSettings::exportScreenProperties()
physicalDotsPerInchConf.set(primaryScreen->physicalDotsPerInch());
physicalDotsPerInchConf.sync();
}
MGConfItem physicalDotsPerInchXConf("/lipstick/screen/primary/physicalDotsPerInchX");
if (physicalDotsPerInchXConf.value(defaultValue) != primaryScreen->physicalDotsPerInchX()) {
physicalDotsPerInchXConf.set(primaryScreen->physicalDotsPerInchX());
physicalDotsPerInchXConf.sync();
}
MGConfItem physicalDotsPerInchYConf("/lipstick/screen/primary/physicalDotsPerInchY");
if (physicalDotsPerInchYConf.value(defaultValue) != primaryScreen->physicalDotsPerInchY()) {
physicalDotsPerInchYConf.set(primaryScreen->physicalDotsPerInchY());
physicalDotsPerInchYConf.sync();
}
}

QString LipstickSettings::blankingPolicy()
Expand Down

0 comments on commit f8fa384

Please sign in to comment.