aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index b423fcca..f1129b03 100644
--- a/selection.c
+++ b/selection.c
@@ -661,6 +661,18 @@ selection_cancel(struct terminal *term)
term->selection.ongoing = false;
}
+bool
+selection_clipboard_has_data(const struct seat *seat)
+{
+ return seat->clipboard.data_offer != NULL;
+}
+
+bool
+selection_primary_has_data(const struct seat *seat)
+{
+ return seat->primary.data_offer != NULL;
+}
+
void
selection_clipboard_unset(struct seat *seat)
{