mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-18 06:59:44 -05:00
data-device: refactor set selections for xwayland
This commit is contained in:
parent
df0a8d3abe
commit
02f4acc69f
2 changed files with 21 additions and 8 deletions
|
|
@ -36,6 +36,12 @@ struct wlr_data_source {
|
|||
uint32_t compositor_action;
|
||||
bool actions_set;
|
||||
|
||||
void (*accept)(struct wlr_data_source *source, uint32_t serial,
|
||||
const char *mime_type);
|
||||
void (*send)(struct wlr_data_source *source, const char *mime_type,
|
||||
int32_t fd);
|
||||
void (*cancel)(struct wlr_data_source *source);
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
|
@ -72,4 +78,7 @@ struct wlr_data_device_manager *wlr_data_device_manager_create(
|
|||
*/
|
||||
void wlr_seat_handle_send_selection(struct wlr_seat_handle *handle);
|
||||
|
||||
void wlr_seat_set_selection(struct wlr_seat *seat,
|
||||
struct wlr_data_source *source, uint32_t serial);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue