aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
authorvil <vil@vil.lv>2018-06-17 17:37:58 -0400
committerGitHub <noreply@github.com>2018-06-17 17:37:58 -0400
commit8884a063c1c11cb1e2370c3f172fcb9ebd59c991 (patch)
tree7f2fc2f6cd4ba948df2e9e119e2e109973f638db /include/sway/input/seat.h
parent54a5ee2747c3eae35e4fec400d1efc6ee7509a38 (diff)
parent7c44ca95f9aef526c6cfa8c2d3704af39755f38b (diff)
Merge branch 'master' into mark-pool-buffers-busy
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r--include/sway/input/seat.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 2e4da438..1f7792ba 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -21,6 +21,19 @@ struct sway_seat_container {
struct wl_listener destroy;
};
+struct sway_drag_icon {
+ struct sway_seat *seat;
+ struct wlr_drag_icon *wlr_drag_icon;
+ struct wl_list link; // sway_root::drag_icons
+
+ double x, y; // in layout-local coordinates
+
+ struct wl_listener surface_commit;
+ struct wl_listener map;
+ struct wl_listener unmap;
+ struct wl_listener destroy;
+};
+
struct sway_seat {
struct wlr_seat *wlr_seat;
struct sway_cursor *cursor;
@@ -35,8 +48,13 @@ struct sway_seat {
// If exclusive_client is set, no other clients will receive input events
struct wl_client *exclusive_client;
+ // Last touch point
+ int32_t touch_id;
+ double touch_x, touch_y;
+
struct wl_listener focus_destroy;
struct wl_listener new_container;
+ struct wl_listener new_drag_icon;
struct wl_list devices; // sway_seat_device::link
@@ -114,4 +132,6 @@ struct seat_config *seat_get_config(struct sway_seat *seat);
bool seat_is_input_allowed(struct sway_seat *seat, struct wlr_surface *surface);
+void drag_icon_update_position(struct sway_drag_icon *icon);
+
#endif