wlr-data-device: basic drag and drop

This commit is contained in:
Tony Crisci 2017-10-14 15:53:30 -04:00
parent 07259cf8ea
commit a1bfa4a2f2
2 changed files with 330 additions and 83 deletions

View file

@ -2,6 +2,7 @@
#define WLR_TYPES_WLR_DATA_DEVICE_H
#include <wayland-server.h>
#include <wlr/types/wlr_seat.h>
struct wlr_data_device_manager {
struct wl_global *global;
@ -37,6 +38,20 @@ struct wlr_data_source {
} events;
};
struct wlr_drag {
struct wlr_seat_pointer_grab pointer_grab;
struct wlr_seat_handle *handle;
struct wlr_seat_handle *focus_handle;
struct wlr_surface *icon;
struct wlr_surface *focus;
struct wlr_data_source *source;
struct wl_listener icon_destroy;
struct wl_listener source_destroy;
struct wl_listener handle_unbound;
};
/**
* Create a wl data device manager global for this display.
*/