wayland: move clipboard/primary structs into the wayland struct

These are application global and very wayland specific
This commit is contained in:
Daniel Eklöf 2019-10-27 16:15:32 +01:00
parent 9e6c28f5b6
commit 5ca1ee701b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 45 additions and 45 deletions

View file

@ -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 */
};