| 385 | } |
| 386 | |
| 387 | bool is_context_shown(recompui::ContextId context) { |
| 388 | return std::find_if(shown_contexts.begin(), shown_contexts.end(), [context](auto& c){ return c.context == context; }) != shown_contexts.end(); |
| 389 | } |
| 390 | |
| 391 | bool is_context_capturing_input() { |
| 392 | return std::find_if(shown_contexts.begin(), shown_contexts.end(), [](auto& c){ return c.context.captures_input(); }) != shown_contexts.end(); |