patch 9.1.1485: missing Wayland clipboard support

Problem:  missing Wayland clipboard support
Solution: make it work (Foxe Chen)

fixes: #5157
closes: #17097

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Foxe Chen
2025-06-27 21:10:35 +02:00
committed by Christian Brabandt
parent 03125277e9
commit b90c2395b2
68 changed files with 7520 additions and 226 deletions

View File

@ -812,6 +812,14 @@
# define WANT_X11
#endif
/*
* +wayland Unix only. Include code for the wayland protocol,
* only works if HAVE_WAYLAND is defined.
*/
#if defined(FEAT_NORMAL) && defined(UNIX)
# define WANT_WAYLAND
#endif
/*
* XSMP - X11 Session Management Protocol
* It may be preferred to disable this if the GUI supports it (e.g.,
@ -912,6 +920,14 @@
# endif
#endif
#if defined(FEAT_NORMAL) && defined(UNIX) \
&& defined(HAVE_WAYLAND) && defined(WANT_WAYLAND)
# define FEAT_WAYLAND_CLIPBOARD
# ifndef FEAT_CLIPBOARD
# define FEAT_CLIPBOARD
# endif
#endif
/*
* +dnd Drag'n'drop support. Always used for the GTK+ GUI.
*/