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

@ -194,6 +194,10 @@
# define FEAT_X11
#endif
#if defined(HAVE_WAYLAND) && defined(WANT_WAYLAND)
#define FEAT_WAYLAND
#endif
#ifdef NO_X11_INCLUDES
// In os_mac_conv.c and os_macosx.m NO_X11_INCLUDES is defined to avoid
// X11 headers. Disable all X11 related things to avoid conflicts.
@ -2224,7 +2228,9 @@ typedef int sock_T;
#define VV_TYPE_ENUMVALUE 109
#define VV_STACKTRACE 110
#define VV_TYPE_TUPLE 111
#define VV_LEN 112 // number of v: vars
#define VV_WAYLAND_DISPLAY 112
#define VV_CLIPMETHOD 113
#define VV_LEN 114 // number of v: vars
// used for v_number in VAR_BOOL and VAR_SPECIAL
#define VVAL_FALSE 0L // VAR_BOOL
@ -2279,6 +2285,13 @@ typedef int sock_T;
# endif
# endif
typedef enum {
CLIPMETHOD_FAIL,
CLIPMETHOD_NONE,
CLIPMETHOD_WAYLAND,
CLIPMETHOD_X11,
} clipmethod_T;
// Info about selected text
typedef struct
{