diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-14 15:53:30 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-15 05:59:52 -0400 |
commit | a1bfa4a2f2e8c72761486b7219fe19a61c9dbda2 (patch) | |
tree | b1e8e4dc3b23076a6f192a37d4e0b2fdb18016f1 /include | |
parent | 07259cf8ea7eae1666b2a62bd3b9cc120d0a4276 (diff) |
wlr-data-device: basic drag and drop
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_data_device.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h index 3074a6e3..cb867741 100644 --- a/include/wlr/types/wlr_data_device.h +++ b/include/wlr/types/wlr_data_device.h @@ -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. */ |