[gtk+] wayland: Allow 0-size writes in selection/dnd
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Allow 0-size writes in selection/dnd
- Date: Wed, 9 Mar 2016 17:41:15 +0000 (UTC)
commit f61965233bdd4eb725e8508849517f7865a92d5c
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Mar 9 17:28:29 2016 +0100
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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index 8a9d1ee..e1dd69b 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]