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>
diff --git a/src/option.c b/src/option.c
index 150e562..af07664 100644
--- a/src/option.c
+++ b/src/option.c
@@ -4723,6 +4723,36 @@
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.
*/