mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
clipboard: set fd member of clipboard_source
The fd member of clipboard_source structure was not set but was used in close(). v2. don't do unnecessary changes Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
ab9285bf8a
commit
389a10d705
|
@ -151,6 +151,7 @@ clipboard_source_create(struct clipboard *clipboard,
|
||||||
source->refcount = 1;
|
source->refcount = 1;
|
||||||
source->clipboard = clipboard;
|
source->clipboard = clipboard;
|
||||||
source->serial = serial;
|
source->serial = serial;
|
||||||
|
source->fd = fd;
|
||||||
|
|
||||||
s = wl_array_add(&source->base.mime_types, sizeof *s);
|
s = wl_array_add(&source->base.mime_types, sizeof *s);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
|
Loading…
Reference in a new issue