| 428 | } |
| 429 | |
| 430 | std::optional<wf::texture_t> wf::scene::wlr_surface_node_t::to_texture() const |
| 431 | { |
| 432 | if (this->current_state.current_buffer) |
| 433 | { |
| 434 | return wf::texture_t{current_state.texture, current_state.src_viewport, current_state.transform}; |
| 435 | } |
| 436 | |
| 437 | return {}; |
| 438 | } |
| 439 | |
| 440 | // Idea of handling output enter/leave events: when the event comes, we store the number of enters/leaves |
| 441 | // for outputs and update them on the next idle. The idea is to cache together multiple events, which may |