mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
wlr-data-device: basic drag and drop
This commit is contained in:
parent
07259cf8ea
commit
a1bfa4a2f2
2 changed files with 330 additions and 83 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue