| 73 | } |
| 74 | |
| 75 | std::optional<input_node_t> node_t::find_node_at(const wf::pointf_t& at) |
| 76 | { |
| 77 | auto local = this->to_local(at); |
| 78 | for (auto& node : get_children()) |
| 79 | { |
| 80 | if (!node->is_enabled()) |
| 81 | { |
| 82 | continue; |
| 83 | } |
| 84 | |
| 85 | auto child_node = node->find_node_at(local); |
| 86 | if (child_node.has_value()) |
| 87 | { |
| 88 | return child_node; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | return {}; |
| 93 | } |
| 94 | |
| 95 | wf::keyboard_focus_node_t node_t::keyboard_refocus(wf::output_t *output) |
| 96 | { |
no test coverage detected