diff options
author | Simon Ser <contact@emersion.fr> | 2021-11-22 22:30:40 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-11-23 14:14:18 +0000 |
commit | 1d9c1bcea6a223379af63b4d779d53663eaffcf8 (patch) | |
tree | ddab71bb63061a9bb0868fdce1496b52b4fea5a5 /include/backend | |
parent | c9ba9e82b6a829d6e6d5acc65753b3ade46cefb9 (diff) |
input-device: remove wlr_input_device.link
This field's ownership is unclear: it's in wlr_input_device, but
it's not managed by the common code, it's up to each individual
backend to use it and clean it up.
Since this is a backend implementation detail, move it to the
backend-specific structs.
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/headless.h | 2 | ||||
-rw-r--r-- | include/backend/libinput.h | 2 | ||||
-rw-r--r-- | include/backend/wayland.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/include/backend/headless.h b/include/backend/headless.h index 09d5856b..f60d07e6 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -29,7 +29,7 @@ struct wlr_headless_output { struct wlr_headless_input_device { struct wlr_input_device wlr_input_device; - + struct wl_list link; struct wlr_headless_backend *backend; }; diff --git a/include/backend/libinput.h b/include/backend/libinput.h index e85ad291..a6841d7e 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -26,7 +26,7 @@ struct wlr_libinput_backend { struct wlr_libinput_input_device { struct wlr_input_device wlr_input_device; - + struct wl_list link; struct libinput_device *handle; }; diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 32783597..4e5d3636 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -87,6 +87,7 @@ struct wlr_wl_output { struct wlr_wl_input_device { struct wlr_input_device wlr_input_device; + struct wl_list link; uint32_t fingers; struct wlr_wl_backend *backend; |