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 /terminal.h | |
| parent | selection: selection_finalize() ignores invalid selections (diff) | |
selection: initial copy-to-clipboard functionality
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -23,6 +23,8 @@ struct wayland { struct wl_surface *surface; struct wl_shm *shm; struct wl_seat *seat; + struct wl_data_device_manager *data_device_manager; + struct wl_data_device *data_device; struct wl_keyboard *keyboard; struct { struct wl_pointer *pointer; @@ -184,6 +186,13 @@ enum mouse_reporting { MOUSE_URXVT, /* ?1015h */ }; +struct clipboard { + struct wl_data_source *data_source; + struct wl_data_offer *data_offer; + char *text; + uint32_t serial; +}; + struct terminal { pid_t slave; int ptmx; @@ -231,6 +240,8 @@ struct terminal { struct { struct coord start; struct coord end; + struct clipboard primary; + struct clipboard clipboard; } selection; struct grid normal; |
