MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / find_node_at

Method find_node_at

src/core/scene.cpp:75–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75std::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
95wf::keyboard_focus_node_t node_t::keyboard_refocus(wf::output_t *output)
96{

Callers 1

get_view_atMethod · 0.45

Calls 2

to_localMethod · 0.95
is_enabledMethod · 0.45

Tested by

no test coverage detected