mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-22 06:46:49 -04:00
wayland: move clipboard/primary structs into the wayland struct
These are application global and very wayland specific
This commit is contained in:
parent
9e6c28f5b6
commit
5ca1ee701b
5 changed files with 45 additions and 45 deletions
18
wayland.h
18
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 */
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue