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

Function wlr_surface_from_node

src/core/seat/tablet.cpp:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static inline wlr_surface *wlr_surface_from_node(wf::scene::node_ptr node)
104{
105 if (auto snode = dynamic_cast<wf::scene::wlr_surface_node_t*>(node.get()))
106 {
107 return snode->get_surface();
108 }
109
110 return nullptr;
111}
112
113void wf::tablet_tool_t::update_tool_position(bool real_update)
114{

Callers 2

update_tool_positionMethod · 0.85
set_focusMethod · 0.85

Calls 2

get_surfaceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected