diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-01 11:51:50 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-02-21 17:11:32 +0000 |
commit | edfb332b24a2a1e014de10eba1c5bf2b84538d2f (patch) | |
tree | 825be950a750cbb672f7e5033b54d02b42745c3d /include/wlr | |
parent | 7dfee50350180e38c7c02b79c5a3ee454dc552fd (diff) |
types/wlr_touch: add base wlr_input_device
wlr_touch now owns its wlr_input_device. It will be initialized when the
tablet tool is initialized, and finished when the touch is destroyed.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/interfaces/wlr_touch.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_touch.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/wlr/interfaces/wlr_touch.h b/include/wlr/interfaces/wlr_touch.h index e4ea6a78..2b95d2bf 100644 --- a/include/wlr/interfaces/wlr_touch.h +++ b/include/wlr/interfaces/wlr_touch.h @@ -16,7 +16,7 @@ struct wlr_touch_impl { }; void wlr_touch_init(struct wlr_touch *touch, - const struct wlr_touch_impl *impl); + const struct wlr_touch_impl *impl, const char *name); void wlr_touch_destroy(struct wlr_touch *touch); #endif diff --git a/include/wlr/types/wlr_touch.h b/include/wlr/types/wlr_touch.h index ca7cf2a6..b2c097e8 100644 --- a/include/wlr/types/wlr_touch.h +++ b/include/wlr/types/wlr_touch.h @@ -10,11 +10,14 @@ #define WLR_TYPES_WLR_TOUCH_H #include <stdint.h> +#include <wlr/types/wlr_input_device.h> #include <wayland-server-core.h> struct wlr_touch_impl; struct wlr_touch { + struct wlr_input_device base; + const struct wlr_touch_impl *impl; struct { |