aboutsummaryrefslogtreecommitdiff
path: root/examples/screenshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/screenshot.c')
-rw-r--r--examples/screenshot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/screenshot.c b/examples/screenshot.c
index 441d8684..529af38f 100644
--- a/examples/screenshot.c
+++ b/examples/screenshot.c
@@ -277,8 +277,9 @@ int main(int argc, char *argv[]) {
screenshooter, output->output, output->buffer);
orbital_screenshot_add_listener(screenshot, &screenshot_listener, screenshot);
buffer_copy_done = 0;
- while (!buffer_copy_done)
+ while (!buffer_copy_done) {
wl_display_roundtrip(display);
+ }
}
write_image("wayland-screenshot.png", width, height);