diff --git a/src/x11/meta-x11-selection-output-stream.c b/src/x11/meta-x11-selection-output-stream.c index 7179074e9..bc13dbcd9 100644 --- a/src/x11/meta-x11-selection-output-stream.c +++ b/src/x11/meta-x11-selection-output-stream.c @@ -223,7 +223,7 @@ meta_x11_selection_output_stream_perform_flush (MetaX11SelectionOutputStream *st if (!priv->incr) first_chunk = TRUE; - if (!g_output_stream_is_closing (G_OUTPUT_STREAM (stream))) + if (!priv->incr && priv->data->len > max_size) { XWindowAttributes attrs;