aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-11 10:16:50 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-11 15:38:02 +0000
commitb50ec1a8500bab8e88b9ca2517d5e1f11adb98b4 (patch)
tree7aa72f9b922363a49deece245c708c2a960b1276 /terminal.h
parentselection: selection_finalize() ignores invalid selections (diff)
selection: initial copy-to-clipboard functionality
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 8b080ad9..4d73f998 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;