[Spice-devel] [PATCH vdagent 0/2] clipboard system redesign

Jakub Janků janku.jakub.jj at gmail.com
Sun Jan 21 20:03:12 UTC 2018


Hi,
these two patches replace the current clipboard handling code, which uses Xlib, with code utilizing GTK+. The code was moved from x11.c to clipboard.c
Although GTK+ can work on Wayland natively, this code currently works only under X. gdk_set_allowed_backends("x11") in vdagent.c is called to force GTK+ to always use X11 backend.

The implementation is partially based on the code in spice-gtk (spice-gtk-session.c).

Cheers,

Jakub Janků (2):
  vdagent-x11: remove clipboard handling
  vdagent: handle clipboard using GTK+

 Makefile.am             |    2 +
 src/vdagent/clipboard.c |  401 ++++++++++++++++++
 src/vdagent/clipboard.h |   42 ++
 src/vdagent/vdagent.c   |   38 +-
 src/vdagent/x11-priv.h  |   91 ----
 src/vdagent/x11.c       | 1074 +----------------------------------------------
 src/vdagent/x11.h       |   10 -
 7 files changed, 472 insertions(+), 1186 deletions(-)
 create mode 100644 src/vdagent/clipboard.c
 create mode 100644 src/vdagent/clipboard.h

-- 
2.14.3



More information about the Spice-devel mailing list