Don't busy loop during wlgrab capture

This commit is contained in:
Cameron Gutman
2024-01-03 16:08:46 -06:00
parent e1771de37a
commit 3adf9e5967
3 changed files with 40 additions and 3 deletions

View File

@@ -206,6 +206,10 @@ namespace wl {
void
roundtrip();
// Wait up to the timeout to read and dispatch new events
bool
dispatch(std::chrono::milliseconds timeout);
// Get the registry associated with the display
// No need to manually free the registry
wl_registry *