aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-15 11:06:03 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-15 11:06:03 -0400
commitdf0a8d3abe6a7a8cd010e07f078c0e92ea2fb516 (patch)
treead44d1e4625019fb74f79dbcd69668c19b1d022d /include
parenta1bfa4a2f2e8c72761486b7219fe19a61c9dbda2 (diff)
wlr-data-device: drag icons
Diffstat (limited to 'include')
-rw-r--r--include/rootston/input.h11
-rw-r--r--include/wlr/types/wlr_data_device.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h
index fbabbdb6..8b4fc3b3 100644
--- a/include/rootston/input.h
+++ b/include/rootston/input.h
@@ -70,6 +70,15 @@ struct roots_input_event {
struct wlr_input_device *device;
};
+struct roots_drag_icon {
+ struct wlr_surface *surface;
+ struct wl_list link; // roots_input::drag_icons
+ bool mapped;
+
+ struct wl_listener surface_destroy;
+ struct wl_listener surface_commit;
+};
+
struct roots_input {
struct roots_config *config;
struct roots_server *server;
@@ -80,6 +89,7 @@ struct roots_input {
struct wlr_xcursor *xcursor;
struct wlr_seat *wl_seat;
struct roots_view *client_cursor_view;
+ struct wl_list drag_icons;
enum roots_cursor_mode mode;
struct roots_view *active_view, *last_active_view;
@@ -107,6 +117,7 @@ struct roots_input {
struct wl_listener cursor_tool_axis;
struct wl_listener cursor_tool_tip;
+ struct wl_listener pointer_grab_begin;
struct wl_listener pointer_grab_end;
struct wl_listener request_set_cursor;
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h
index cb867741..6c5dc097 100644
--- a/include/wlr/types/wlr_data_device.h
+++ b/include/wlr/types/wlr_data_device.h
@@ -4,6 +4,9 @@
#include <wayland-server.h>
#include <wlr/types/wlr_seat.h>
+extern const struct
+wlr_pointer_grab_interface wlr_data_device_pointer_drag_interface;
+
struct wlr_data_device_manager {
struct wl_global *global;
};