aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-04-26 12:31:25 +0200
committerMarkus Ongyerth <ongy@ongy.net>2018-07-14 09:40:39 +0200
commitf375246657e23926d98cc21ae66a5dae352ea50a (patch)
tree5ff246edb638df15244485e477d5dcf419475d59 /include/rootston
parentf696e980f1790621bdeb0b56482fc2590cf3226c (diff)
Implement basic tablet_pad handling (bound to keyboard focus)
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/seat.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index 0e3043dd..31ddd6fa 100644
--- a/include/rootston/seat.h
+++ b/include/rootston/seat.h
@@ -31,6 +31,7 @@ struct roots_seat {
struct wl_list pointers;
struct wl_list touch;
struct wl_list tablet_tools;
+ struct wl_list tablet_pads;
struct wl_listener new_drag_icon;
struct wl_listener destroy;
@@ -80,12 +81,34 @@ struct roots_touch {
struct roots_tablet_tool {
struct roots_seat *seat;
struct wlr_input_device *device;
+ struct wlr_tablet_v2_tablet *tablet_v2;
+
struct wl_listener device_destroy;
struct wl_listener axis;
struct wl_listener proximity;
struct wl_listener tip;
struct wl_listener button;
struct wl_list link;
+
+ struct wl_list pads; // struct roots_tablet_pad::tablet_link
+};
+
+struct roots_tablet_pad {
+ struct wl_list link;
+ struct wl_list tablet_link;
+ struct wlr_tablet_v2_tablet_pad *tablet_v2_pad;
+
+ struct roots_seat *seat;
+ struct wlr_input_device *device;
+
+ struct wl_listener device_destroy;
+ struct wl_listener attach;
+ struct wl_listener button;
+ struct wl_listener ring;
+ struct wl_listener strip;
+
+ struct roots_tablet_tool *tablet;
+ struct wl_listener tablet_destroy;
};
struct roots_seat *roots_seat_create(struct roots_input *input, char *name);