summaryrefslogtreecommitdiffstats
path: root/src/xx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xx.cpp')
-rw-r--r--src/xx.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xx.cpp b/src/xx.cpp
index e5749d5..8be1d96 100644
--- a/src/xx.cpp
+++ b/src/xx.cpp
@@ -318,6 +318,17 @@ ScreenMode ScreenSetup::getCurrentMode()
return ScreenMode::Clone;
}
+bool ScreenSetup::hasScreenWithoutEdid()
+{
+ for (auto oi : a->_outputMap) {
+ // no preferred modes pretty much means no EDID, although technically I think you could have EDID
+ // that doesn't provide a preferred mode...
+ if (oi->output != nullptr && oi->output->connection != RR_Disconnected && oi->output->npreferred == 0)
+ return true;
+ }
+ return false;
+}
+
ConfigBackup ScreenSetup::setDefaultMode(bool dryRun, ScreenMode &mode)
{
ConfigBackup retval;