summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-04-11 17:09:23 +0200
committerRobert Mader <robert.mader@posteo.de>2020-04-16 16:26:04 +0000
commit0b21dcfe08c9a3ac137da518d6ef5f3a80528883 (patch)
treed21dee589f2d611f2c0751d45de8a806be21fb41
parent7c939d78c2b20989412a710665cbbea6b12ff8dd (diff)
downloadmutter-0b21dcfe08c9a3ac137da518d6ef5f3a80528883.tar.gz
x11: Wait till data is flushed before notifying on the pending task
It does not make sense to notify flushes mid-transfer. We should wait till the data is actually finished before notifying on the pending task. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1198
-rw-r--r--src/x11/meta-x11-selection-output-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/meta-x11-selection-output-stream.c b/src/x11/meta-x11-selection-output-stream.c
index f7c27cc09..59ca1d400 100644
--- a/src/x11/meta-x11-selection-output-stream.c
+++ b/src/x11/meta-x11-selection-output-stream.c
@@ -277,7 +277,7 @@ meta_x11_selection_output_stream_perform_flush (MetaX11SelectionOutputStream *st
error_str);
g_clear_object (&priv->pending_task);
}
- else if (priv->pending_task)
+ else if (priv->pending_task && priv->data->len == 0 && !priv->delete_pending)
{
size_t result;