aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-02-01 11:32:39 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-02-21 17:11:32 +0000
commit7dfee50350180e38c7c02b79c5a3ee454dc552fd (patch)
tree7f051882fbe6dbe1fe08b7eaa343f53698d89806 /include
parenta662743610a61df07c6616230e66e78456ecdafb (diff)
types/wlr_tablet_tool: add base wlr_input_device
wlr_tablet_tool owns its wlr_input_device. It will be initialized when the tablet tool is initialized, and finished when the tablet tool is destroyed.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/interfaces/wlr_tablet_tool.h2
-rw-r--r--include/wlr/types/wlr_tablet_tool.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/interfaces/wlr_tablet_tool.h b/include/wlr/interfaces/wlr_tablet_tool.h
index 81e72d75..de7430a2 100644
--- a/include/wlr/interfaces/wlr_tablet_tool.h
+++ b/include/wlr/interfaces/wlr_tablet_tool.h
@@ -16,7 +16,7 @@ struct wlr_tablet_impl {
};
void wlr_tablet_init(struct wlr_tablet *tablet,
- const struct wlr_tablet_impl *impl);
+ const struct wlr_tablet_impl *impl, const char *name);
void wlr_tablet_destroy(struct wlr_tablet *tablet);
#endif
diff --git a/include/wlr/types/wlr_tablet_tool.h b/include/wlr/types/wlr_tablet_tool.h
index 75fc1ee8..b8b4000f 100644
--- a/include/wlr/types/wlr_tablet_tool.h
+++ b/include/wlr/types/wlr_tablet_tool.h
@@ -60,6 +60,8 @@ struct wlr_tablet_tool {
struct wlr_tablet_impl;
struct wlr_tablet {
+ struct wlr_input_device base;
+
const struct wlr_tablet_impl *impl;
struct {