forked from AuroraMiddleware/gtk
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:
parent
3da4b81427
commit
f61965233b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user