aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/seat.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-18 22:18:25 +0100
committeremersion <contact@emersion.fr>2017-11-18 22:18:25 +0100
commit72d877658aaf309eb066e3b9825c5f59177b15c3 (patch)
tree2f7123b9cc9f6a99c1d8351272d69572b7d1e811 /include/rootston/seat.h
parent1523082d5d74ca40f468bec04c23ed47049bb4d7 (diff)
parentfa36ac90f70787176a5cfdb6fa6835aa1226f697 (diff)
Merge branch 'master' into seat-views
Diffstat (limited to 'include/rootston/seat.h')
-rw-r--r--include/rootston/seat.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index a8397d89..ec0608e7 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;
+ int32_t touch_id;
+
int32_t sx, sy;
struct wl_listener surface_destroy;
@@ -22,6 +25,10 @@ struct roots_seat {
struct wl_list drag_icons;
struct wl_list link;
+ // coordinates of the first touch point if it exists
+ int32_t touch_id;
+ double touch_x, touch_y;
+
struct wl_list views; // roots_seat_view::link
struct roots_seat_view *focus;
@@ -51,13 +58,6 @@ struct roots_touch {
struct wl_list link;
};
-struct roots_touch_point {
- struct roots_touch *device;
- int32_t slot;
- double x, y;
- struct wl_list link;
-};
-
struct roots_tablet_tool {
struct roots_seat *seat;
struct wlr_input_device *device;