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

Function get_root

plugins/tile/tree.cpp:561–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561nonstd::observer_ptr<split_node_t> get_root(
562 nonstd::observer_ptr<tree_node_t> node)
563{
564 if (!node->parent)
565 {
566 return {dynamic_cast<split_node_t*>(node.get())};
567 }
568
569 return get_root(node->parent);
570}
571}
572}

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected