Skip to content

Add XfceClipboardManager

Share the code currently present in xfce4-settings, so that the same clipboard manager can be used on X11 in xfce4-clipman-plugin, whether xfsettingsd is running or not (initially motivated by panel-plugins/xfce4-clipman-plugin#107 (closed)).

Apart from formatting the code to suit libxfce4ui, the only changes made are:

  • Rename GsdClipboardManager into XfceClipboardManager
  • Replacement of _start() and _stop() by a failable constructor.
  • Copy of xfce_xsettings_get_server_time(), which is used here.
  • Use g_list_free_full() whenever possible.

Related: panel-plugins/xfce4-clipman-plugin!27 (merged), xfce4-settings!117 (merged)

Edited by Gaël Bonithon

Merge request reports