diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-27 15:15:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-27 15:15:32 +0000 |
| commit | 5ca1ee701bc4297180fa9c248d9f8810ef82550c (patch) | |
| tree | 89eed45b45ca6b0233bde223d5cb852ca7f7fe64 /wayland.h | |
| parent | wayland: 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.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 */ }; |
