aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-15 08:34:35 -0500
committerTony Crisci <tony@dubstepdish.com>2017-11-15 08:34:48 -0500
commit12758a00a2d388b050386f017a3a273c1302e648 (patch)
treee912ea57359dc3f22b3ad7e33b7520728f273552 /include/rootston
parentac4841ba37aee8c0d661c44f2de2fd6ed5d38086 (diff)
downloadwlroots-12758a00a2d388b050386f017a3a273c1302e648.tar.xz
rootston: touch to focus
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/seat.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index c9dc883c..aebd4399 100644
--- a/include/rootston/seat.h
+++ b/include/rootston/seat.h
@@ -10,7 +10,7 @@ struct roots_drag_icon {
bool mapped;
bool is_pointer;
- bool touch_id;
+ int32_t touch_id;
int32_t sx;
int32_t sy;
@@ -26,8 +26,9 @@ struct roots_seat {
struct wl_list link;
struct wl_list drag_icons;
- // coordinates of the touch grab if one exists
- double touch_grab_x, touch_grab_y;
+ // coordinates of the first touch point if it exists
+ int32_t touch_id;
+ double touch_x, touch_y;
struct roots_view *focus;