summaryrefslogtreecommitdiff
path: root/src/wayland/meta-selection-source-wayland.c
Commit message (Collapse)AuthorAgeFilesLines
* wayland: Simplify MetaSelectionSourceWaylandCarlos Garnacho2019-10-111-14/+22
| | | | | | | | | | | Instead of taking resource and send/cancel funcs, take a MetaWaylandDataSource, which exposes all the vfuncs to do the same on the internal resource. This has the added side effect that only MetaWaylandDataSource has a pointer to the wl_resource, which may be unset untimely. Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/842
* wayland: Add wayland MetaSelectionSource implementationCarlos Garnacho2019-05-021-0/+162
This object represents a Wayland selection owner. In order to invert the FD direction (we hand an output fd, but want an inpu fd), create an intermediate pipe so we can then create a GInputStream on top of it. https://gitlab.gnome.org/GNOME/mutter/merge_requests/320