aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-02-01 10:25:28 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-02-21 17:11:32 +0000
commita662743610a61df07c6616230e66e78456ecdafb (patch)
treebb276de24b0a2633c0a672e331108d1fc2c26d62 /include/wlr
parent0f3b38365d07bb3e65b5ce2ec265453115276d1d (diff)
types/wlr_tablet_pad: add base wlr_input_device
wlr_tablet_pad owns its wlr_input_device. It will be initialized when the tablet pad is initialized, and finished when the tablet pad is destroyed.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/interfaces/wlr_tablet_pad.h2
-rw-r--r--include/wlr/types/wlr_tablet_pad.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/interfaces/wlr_tablet_pad.h b/include/wlr/interfaces/wlr_tablet_pad.h
index 86bbe9c3..b35f162e 100644
--- a/include/wlr/interfaces/wlr_tablet_pad.h
+++ b/include/wlr/interfaces/wlr_tablet_pad.h
@@ -16,7 +16,7 @@ struct wlr_tablet_pad_impl {
};
void wlr_tablet_pad_init(struct wlr_tablet_pad *pad,
- struct wlr_tablet_pad_impl *impl);
+ struct wlr_tablet_pad_impl *impl, const char *name);
void wlr_tablet_pad_destroy(struct wlr_tablet_pad *pad);
#endif
diff --git a/include/wlr/types/wlr_tablet_pad.h b/include/wlr/types/wlr_tablet_pad.h
index 6cd1b70e..f30809cf 100644
--- a/include/wlr/types/wlr_tablet_pad.h
+++ b/include/wlr/types/wlr_tablet_pad.h
@@ -22,6 +22,8 @@
struct wlr_tablet_pad_impl;
struct wlr_tablet_pad {
+ struct wlr_input_device base;
+
struct wlr_tablet_pad_impl *impl;
struct {