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

@ -4723,6 +4723,36 @@ did_set_winwidth(optset_T *args UNUSED)
return errmsg;
}
#ifdef FEAT_WAYLAND_CLIPBOARD
/*
* Process the new 'wlsteal' option value.
*/
char *
did_set_wlsteal(optset_T *args UNUSED)
{
wayland_cb_reload();
return NULL;
}
#endif
#ifdef FEAT_WAYLAND
/*
* Process the new 'wltimeoutlen' option value.
*/
char *
did_set_wltimeoutlen(optset_T *args)
{
if (p_wtm < 0)
{
p_wtm = args->os_oldval.number;
return e_argument_must_be_positive;
}
return NULL;
}
#endif
/*
* Process the updated 'wrap' option value.
*/