diff --git a/src/x11/meta-x11-selection-output-stream.c b/src/x11/meta-x11-selection-output-stream.c index fa6b27523..d115f902f 100644 --- a/src/x11/meta-x11-selection-output-stream.c +++ b/src/x11/meta-x11-selection-output-stream.c @@ -227,7 +227,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;