mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
x11: Don't invariably queue a pending delete request
We don't need doing this roundtrip for non-INCR transfers. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1198
This commit is contained in:
parent
04d429b743
commit
d2c762cc66
@ -243,9 +243,13 @@ meta_x11_selection_output_stream_perform_flush (MetaX11SelectionOutputStream *st
|
|||||||
PropModeReplace,
|
PropModeReplace,
|
||||||
(guchar *) &(long) { n_elements },
|
(guchar *) &(long) { n_elements },
|
||||||
1);
|
1);
|
||||||
|
priv->delete_pending = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (priv->incr && priv->data->len > 0)
|
||||||
|
priv->delete_pending = TRUE;
|
||||||
|
|
||||||
XChangeProperty (xdisplay,
|
XChangeProperty (xdisplay,
|
||||||
priv->xwindow,
|
priv->xwindow,
|
||||||
priv->xproperty,
|
priv->xproperty,
|
||||||
@ -260,7 +264,6 @@ meta_x11_selection_output_stream_perform_flush (MetaX11SelectionOutputStream *st
|
|||||||
if (first_chunk)
|
if (first_chunk)
|
||||||
meta_x11_selection_output_stream_notify_selection (stream);
|
meta_x11_selection_output_stream_notify_selection (stream);
|
||||||
|
|
||||||
priv->delete_pending = TRUE;
|
|
||||||
g_cond_broadcast (&priv->cond);
|
g_cond_broadcast (&priv->cond);
|
||||||
g_mutex_unlock (&priv->mutex);
|
g_mutex_unlock (&priv->mutex);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user