mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-26 06:59:52 -05:00
xwm: send selection data
This commit is contained in:
parent
ea6f77b484
commit
b0683874e9
8 changed files with 298 additions and 31 deletions
|
|
@ -36,6 +36,8 @@ enum atom_name {
|
|||
TARGETS,
|
||||
CLIPBOARD_MANAGER,
|
||||
INCR,
|
||||
TEXT,
|
||||
TIMESTAMP,
|
||||
ATOM_LAST,
|
||||
};
|
||||
|
||||
|
|
@ -50,6 +52,7 @@ enum net_wm_state_action {
|
|||
struct wlr_xwm {
|
||||
struct wlr_xwayland *xwayland;
|
||||
struct wl_event_source *event_source;
|
||||
struct wlr_seat *seat;
|
||||
|
||||
xcb_atom_t atoms[ATOM_LAST];
|
||||
xcb_connection_t *xcb_conn;
|
||||
|
|
@ -70,6 +73,10 @@ struct wlr_xwm {
|
|||
int property_start;
|
||||
xcb_get_property_reply_t *property_reply;
|
||||
struct wl_event_source *property_source;
|
||||
int flush_property_on_delete;
|
||||
struct wl_array source_data;
|
||||
xcb_atom_t selection_target;
|
||||
bool selection_property_set;
|
||||
|
||||
struct wlr_xwayland_surface *focus_surface;
|
||||
|
||||
|
|
@ -79,6 +86,7 @@ struct wlr_xwm {
|
|||
const xcb_query_extension_reply_t *xfixes;
|
||||
|
||||
struct wl_listener compositor_surface_create;
|
||||
struct wl_listener seat_selection_change;
|
||||
};
|
||||
|
||||
struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland);
|
||||
|
|
@ -92,4 +100,6 @@ int xwm_handle_selection_event(struct wlr_xwm *xwm, xcb_generic_event_t *event);
|
|||
|
||||
void xwm_selection_init(struct wlr_xwm *xwm);
|
||||
|
||||
void xwm_set_seat(struct wlr_xwm *xwm, struct wlr_seat *seat);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue