aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-19 09:12:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-19 09:12:14 +0000
commit167036ccbea9af961c2635226a7c9746f2f8cbf5 (patch)
treef958fe403e7b321bd7880e4fe2a228ab18e2461e /selection.h
parentinput: store last seen wayland input serial (diff)
selection: add text_to_clipboard()
This function takes a string and makes it available to the clipboard.
Diffstat (limited to 'selection.h')
-rw-r--r--selection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/selection.h b/selection.h
index 772f5a73..a98a0327 100644
--- a/selection.h
+++ b/selection.h
@@ -16,3 +16,5 @@ void selection_mark_word(struct terminal *term, int col, int row, uint32_t seria
void selection_to_clipboard(struct terminal *term, uint32_t serial);
void selection_from_clipboard(struct terminal *term, uint32_t serial);
void selection_from_primary(struct terminal *term);
+
+bool text_to_clipboard(struct terminal *term, char *text, uint32_t serial);