| 167 | } |
| 168 | |
| 169 | bool WaylandClient::process_requests() const |
| 170 | { |
| 171 | if (const int result = wl_display_roundtrip(display_.get()); result == -1) { |
| 172 | LogError << "Failed to process requests"; |
| 173 | return false; |
| 174 | } |
| 175 | |
| 176 | return true; |
| 177 | } |
| 178 | |
| 179 | bool WaylandClient::screencap(void** buffer, uint32_t& width, uint32_t& height, uint32_t& format) |
| 180 | { |