| 198 | } |
| 199 | |
| 200 | void 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 */ |
| 210 | decoration_layout_t::action_response_t decoration_layout_t::handle_motion( |
no test coverage detected