diff options
Diffstat (limited to 'src/xx.cpp')
-rw-r--r-- | src/xx.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |