| 35 | } |
| 36 | |
| 37 | static void restoreDockGeometry() |
| 38 | { |
| 39 | std::lock_guard<std::mutex> lock(mutex); |
| 40 | for (const auto &[name, dock] : windows) { |
| 41 | const auto it = windowGeometries.find(name); |
| 42 | if (it == windowGeometries.end()) { |
| 43 | continue; |
| 44 | } |
| 45 | |
| 46 | dock->GetWindow()->restoreState(it->second); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | static void loadDocks(obs_data_t *obj) |
| 51 | { |