From c6e46bbfac8d71ad4b5f632bfd00bdc4599b9483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 3 Jan 2020 21:01:07 +0100 Subject: [PATCH] selection: remove unneeded wayland display roundtrips --- selection.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/selection.c b/selection.c index 91043921..2da2ba03 100644 --- a/selection.c +++ b/selection.c @@ -663,7 +663,6 @@ text_from_clipboard(struct terminal *term, uint32_t serial, /* Give write-end of pipe to other client */ wl_data_offer_receive( clipboard->data_offer, "text/plain;charset=utf-8", write_fd); - wl_display_roundtrip(term->wl->display); /* Don't keep our copy of the write-end open (or we'll never get EOF) */ close(write_fd); @@ -783,7 +782,6 @@ text_from_primary( /* Give write-end of pipe to other client */ zwp_primary_selection_offer_v1_receive( primary->data_offer, "text/plain;charset=utf-8", write_fd); - wl_display_roundtrip(term->wl->display); /* Don't keep our copy of the write-end open (or we'll never get EOF) */ close(write_fd);