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

Method unset_hover

plugins/decor/deco-layout.cpp:200–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void decoration_layout_t::unset_hover(std::optional<wf::point_t> position)
201{
202 auto area = find_area_at(position);
203 if (area && (area->get_type() == DECORATION_AREA_BUTTON))
204 {
205 area->as_button().set_hover(false);
206 }
207}
208
209/** Handle motion event to (x, y) relative to the decoration */
210decoration_layout_t::action_response_t decoration_layout_t::handle_motion(

Callers 1

handle_focus_lostMethod · 0.95

Calls 2

get_typeMethod · 0.80
set_hoverMethod · 0.80

Tested by

no test coverage detected