| 112 | } |
| 113 | |
| 114 | bool MacroConditionWindow::CheckCondition() |
| 115 | { |
| 116 | WindowQueryOptions options; |
| 117 | options.focus = _focus; |
| 118 | options.fullscreen = _fullscreen; |
| 119 | options.maximized = _maximized; |
| 120 | options.geometry = true; |
| 121 | #ifdef _WIN32 |
| 122 | options.windowClass = true; |
| 123 | options.text = _checkText; |
| 124 | #endif |
| 125 | |
| 126 | const auto windows = GetWindows(options); |
| 127 | bool match = FindMatch(windows); |
| 128 | match = match && (!_windowFocusChanged || foregroundWindowChanged()); |
| 129 | return match; |
| 130 | } |
| 131 | |
| 132 | bool MacroConditionWindow::Save(obs_data_t *obj) const |
| 133 | { |
nothing calls this directly
no test coverage detected