aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-27 15:15:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-27 15:15:32 +0000
commit5ca1ee701bc4297180fa9c248d9f8810ef82550c (patch)
tree89eed45b45ca6b0233bde223d5cb852ca7f7fe64 /wayland.h
parentwayland: implement wayl_win_destroy() (diff)
wayland: move clipboard/primary structs into the wayland struct
These are application global and very wayland specific
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index cbd0392c..1b680b2c 100644
--- a/wayland.h
+++ b/wayland.h
@@ -27,6 +27,20 @@ struct monitor {
float refresh;
};
+struct wl_clipboard {
+ struct wl_data_source *data_source;
+ struct wl_data_offer *data_offer;
+ char *text;
+ uint32_t serial;
+};
+
+struct wl_primary {
+ struct zwp_primary_selection_source_v1 *data_source;
+ struct zwp_primary_selection_offer_v1 *data_offer;
+ char *text;
+ uint32_t serial;
+};
+
struct wl_window {
struct wl_surface *surface;
struct xdg_wm_base *shell;
@@ -74,6 +88,10 @@ struct wayland {
char *theme_name;
} pointer;
+ /* Clipboard */
+ struct wl_clipboard clipboard;
+ struct wl_primary primary;
+
bool have_argb8888;
tll(struct monitor) monitors; /* All available outputs */
};