mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 09:19:31 +00:00
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
(cherry picked from commit 0b21dcfe08
)
This commit is contained in:

committed by
Robert Mader

parent
8240aba80f
commit
c92267feb2
@ -281,7 +281,7 @@ meta_x11_selection_output_stream_perform_flush (MetaX11SelectionOutputStream *st
|
|||||||
error_str);
|
error_str);
|
||||||
g_clear_object (&priv->pending_task);
|
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;
|
size_t result;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user