Wayland clipboard utility
git clone git://git.nihaljere.xyz/wayclip
Log | Files | Refs | README | LICENSE

commit f269c63fdc8e5299dd46e161b605c84879fd9af2
parent b772b281f68f5f5414fd3c3ba5121ec042b6ff4e
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Sat,  2 Apr 2022 11:30:20 -0500

waypaste: only do an extra roundtrip if we need to retrieve seats

This and the surrounding code is shared logic with waycopy, probably
should be extracted out at some point.

Mwaypaste.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/waypaste.c b/waypaste.c @@ -72,7 +72,8 @@ main(int argc, char *argv[]) wl_registry_add_listener(registry, &registry_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");