commit 826db200ebe1e7f0b9fe36d8a9937a1de00fbbcc
parent 5498d1acd0b8f94474a05fde5c2a86a425e76e5e
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Mon, 14 Mar 2022 22:46:09 -0500
waycopy: only do extra display round trip when necessary
If we have to choose a seat, an extra round trip is required to get
all the seats.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/waycopy.c b/waycopy.c
@@ -81,7 +81,8 @@ main(int argc, char *argv[])
wl_registry_add_listener(registry, ®istry_listener, NULL);
wl_display_roundtrip(display);
- wl_display_roundtrip(display);
+ if (options.seat)
+ wl_display_roundtrip(display);
if (seat == NULL)
die("failed to bind to seat interface");