aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-09 16:45:10 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-09 17:01:21 +0000
commitdec6f963cbedb093370f8d9559e357e72a31df90 (patch)
tree3edff5eba8fc336895044e5e193750bd00069006 /selection.h
parentselection: add selection_<type>_unset() (diff)
selection: add selection_<type>_has_data()
Returns true when there is data available for paste in the clipboard/primary selection.
Diffstat (limited to 'selection.h')
-rw-r--r--selection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/selection.h b/selection.h
index 178a990b..547da2fc 100644
--- a/selection.h
+++ b/selection.h
@@ -33,6 +33,9 @@ void selection_mark_row(
void selection_clipboard_unset(struct seat *seat);
void selection_primary_unset(struct seat *seat);
+bool selection_clipboard_has_data(const struct seat *seat);
+bool selection_primary_has_data(const struct seat *seat);
+
char *selection_to_text(const struct terminal *term);
void selection_to_clipboard(
struct seat *seat, struct terminal *term, uint32_t serial);