From dec6f963cbedb093370f8d9559e357e72a31df90 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 9 Sep 2020 18:45:10 +0200 Subject: selection: add selection__has_data() Returns true when there is data available for paste in the clipboard/primary selection. --- selection.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'selection.h') 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); -- cgit v1.3