aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/input_device.c
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-06-20 16:57:29 +0200
committerSimon Ser <contact@emersion.fr>2022-06-21 18:42:07 +0000
commit91943a68a6976ef7c4cc70afc07954a00fae678b (patch)
tree4202f4951479425da05e387604266de73b91a2f8 /backend/x11/input_device.c
parent5c4384a1330faedf975c8b8644881d50390f3613 (diff)
wlr_input_device: remove anon union field
This union is unnecessary since the recent input device refactor and can now be replaced by wlr_*_from_input_device() functions.
Diffstat (limited to 'backend/x11/input_device.c')
-rw-r--r--backend/x11/input_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c
index d1f5c2c1..41168222 100644
--- a/backend/x11/input_device.c
+++ b/backend/x11/input_device.c
@@ -317,11 +317,11 @@ void update_x11_pointer_position(struct wlr_x11_output *output,
bool wlr_input_device_is_x11(struct wlr_input_device *wlr_dev) {
switch (wlr_dev->type) {
case WLR_INPUT_DEVICE_KEYBOARD:
- return wlr_dev->keyboard->impl == &x11_keyboard_impl;
+ return wlr_keyboard_from_input_device(wlr_dev)->impl == &x11_keyboard_impl;
case WLR_INPUT_DEVICE_POINTER:
- return wlr_dev->pointer->impl == &x11_pointer_impl;
+ return wlr_pointer_from_input_device(wlr_dev)->impl == &x11_pointer_impl;
case WLR_INPUT_DEVICE_TOUCH:
- return wlr_dev->touch->impl == &x11_touch_impl;
+ return wlr_touch_from_input_device(wlr_dev)->impl == &x11_touch_impl;
default:
return false;
}