diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-11 10:16:50 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-11 15:38:02 +0000 |
| commit | b50ec1a8500bab8e88b9ca2517d5e1f11adb98b4 (patch) | |
| tree | 7aa72f9b922363a49deece245c708c2a960b1276 /selection.h | |
| parent | selection: selection_finalize() ignores invalid selections (diff) | |
selection: initial copy-to-clipboard functionality
Diffstat (limited to 'selection.h')
| -rw-r--r-- | selection.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/selection.h b/selection.h index 84aed3f0..81eb3174 100644 --- a/selection.h +++ b/selection.h @@ -1,8 +1,13 @@ #pragma once +#include <wayland-client.h> + #include "terminal.h" +extern const struct wl_data_device_listener data_device_listener; + void selection_start(struct terminal *term, int col, int row); void selection_update(struct terminal *term, int col, int row); void selection_finalize(struct terminal *term); void selection_cancel(struct terminal *term); +void selection_to_clipboard(struct terminal *term, uint32_t serial); |
