wayland: Allow 0-size writes in selection/dnd

It's not something we should be forbidding explicitly, definitely
no-op is not the best option.
This commit is contained in:
Carlos Garnacho 2016-03-09 17:28:29 +01:00
parent 3da4b81427
commit f61965233b

View File

@ -667,8 +667,7 @@ gdk_wayland_selection_check_write (GdkWaylandSelection *selection)
{
AsyncWriteData *write_data;
if (selection->stored_selection.fd < 0 ||
selection->stored_selection.data_len == 0)
if (selection->stored_selection.fd < 0)
return FALSE;
/* Cancel any previous ongoing async write */