selection: add selection_<type>_unset()

These functions clear the current selection.
This commit is contained in:
Daniel Eklöf 2020-09-09 18:44:49 +02:00
parent 99023cae99
commit c3cacb4704
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 44 additions and 0 deletions

View file

@ -30,6 +30,9 @@ void selection_mark_word(
void selection_mark_row(
struct seat *seat, struct terminal *term, int row, uint32_t serial);
void selection_clipboard_unset(struct seat *seat);
void selection_primary_unset(struct seat *seat);
char *selection_to_text(const struct terminal *term);
void selection_to_clipboard(
struct seat *seat, struct terminal *term, uint32_t serial);