diff options
Diffstat (limited to 'examples/dmabuf-capture.c')
-rw-r--r-- | examples/dmabuf-capture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/dmabuf-capture.c b/examples/dmabuf-capture.c index 2a3e195c..60cdb657 100644 --- a/examples/dmabuf-capture.c +++ b/examples/dmabuf-capture.c @@ -753,6 +753,10 @@ static int init(struct capture_context *ctx) { ctx->registry = wl_display_get_registry(ctx->display); wl_registry_add_listener(ctx->registry, ®istry_listener, ctx); + // First roundtrip to fetch globals + wl_display_roundtrip(ctx->display); + + // Second roundtrip to fetch wl_output information wl_display_roundtrip(ctx->display); if (!ctx->export_manager) { |