From f61965233bdd4eb725e8508849517f7865a92d5c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 9 Mar 2016 17:28:29 +0100 Subject: [PATCH] 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. --- gdk/wayland/gdkselection-wayland.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c index 8a9d1ee825..e1dd69b96a 100644 --- a/gdk/wayland/gdkselection-wayland.c +++ b/gdk/wayland/gdkselection-wayland.c @@ -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 */