| 4131 | } |
| 4132 | |
| 4133 | void Config::setActiveDisplays(const char * displays) |
| 4134 | { |
| 4135 | getImpl()->m_activeDisplays.clear(); |
| 4136 | getImpl()->m_activeDisplays = SplitStringEnvStyle(displays); |
| 4137 | |
| 4138 | // SplitStringEnvStyle needs to always return a result, even if empty, for look parsing. |
| 4139 | // However, this does not count as an active display, so delete it. |
| 4140 | if( getImpl()->m_activeDisplays.size() == 1 && |
| 4141 | getImpl()->m_activeDisplays[0].empty() ) |
| 4142 | { |
| 4143 | getImpl()->m_activeDisplays.clear(); |
| 4144 | } |
| 4145 | |
| 4146 | getImpl()->m_displayCache.clear(); |
| 4147 | |
| 4148 | AutoMutex lock(getImpl()->m_cacheidMutex); |
| 4149 | getImpl()->resetCacheIDs(); |
| 4150 | } |
| 4151 | |
| 4152 | const char * Config::getActiveDisplays() const |
| 4153 | { |