aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-13 15:41:48 -0500
committerTony Crisci <tony@dubstepdish.com>2017-11-15 08:34:48 -0500
commit6a516f7c417c96b6e5a5526c73e6f52ccb9c55d9 (patch)
tree50f866f4c7bf5d4215456afb10045c4ec768294a /include/rootston
parent94e7dc8a3e4df444ef9aeb46b866dd9c8c658855 (diff)
basic touch dnd
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/cursor.h9
-rw-r--r--include/rootston/seat.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/include/rootston/cursor.h b/include/rootston/cursor.h
index b5af7de3..f0c9be89 100644
--- a/include/rootston/cursor.h
+++ b/include/rootston/cursor.h
@@ -56,6 +56,9 @@ struct roots_cursor {
struct wl_listener pointer_grab_begin;
struct wl_listener pointer_grab_end;
+ struct wl_listener touch_grab_begin;
+ struct wl_listener touch_grab_end;
+
struct wl_listener request_set_cursor;
};
@@ -99,4 +102,10 @@ void roots_cursor_handle_pointer_grab_begin(struct roots_cursor *cursor,
void roots_cursor_handle_pointer_grab_end(struct roots_cursor *cursor,
struct wlr_seat_pointer_grab *grab);
+void roots_cursor_handle_touch_grab_begin(struct roots_cursor *cursor,
+ struct wlr_seat_touch_grab *grab);
+
+void roots_cursor_handle_touch_grab_end(struct roots_cursor *cursor,
+ struct wlr_seat_touch_grab *grab);
+
#endif
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index 5fb2f196..e5a1dc71 100644
--- a/include/rootston/seat.h
+++ b/include/rootston/seat.h
@@ -9,6 +9,9 @@ struct roots_drag_icon {
struct wl_list link; // roots_seat::drag_icons
bool mapped;
+ bool is_pointer;
+ bool touch_id;
+
int32_t sx;
int32_t sy;