diff options
author | Isaac Freund <mail@isaacfreund.com> | 2024-02-29 13:31:00 +0100 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2024-02-29 16:09:07 +0100 |
commit | b821be5749061b0b73d777cb2fc74204cbf78278 (patch) | |
tree | e67d855a13f592f6e06afef8b34b96ec00a4f1c3 /backend/libinput | |
parent | 889150f8660a3e802d377670e57f3951c9266510 (diff) | |
download | wlroots-b821be5749061b0b73d777cb2fc74204cbf78278.tar.xz |
input-device: unconfuse tablet naming
WLR_INPUT_DEVICE_TABLET_TOOL is renamed to WLR_INPUT_DEVICE_TABLET
The input device corresponds to wlr_tablet, not wlr_tablet_tool.
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/backend.c | 2 | ||||
-rw-r--r-- | backend/libinput/events.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c index bea999fd..6e59ee3e 100644 --- a/backend/libinput/backend.c +++ b/backend/libinput/backend.c @@ -220,7 +220,7 @@ struct libinput_device *wlr_libinput_get_device_handle( case WLR_INPUT_DEVICE_TOUCH: dev = device_from_touch(wlr_touch_from_input_device(wlr_dev)); break; - case WLR_INPUT_DEVICE_TABLET_TOOL: + case WLR_INPUT_DEVICE_TABLET: dev = device_from_tablet(wlr_tablet_from_input_device(wlr_dev)); break; case WLR_INPUT_DEVICE_TABLET_PAD: diff --git a/backend/libinput/events.c b/backend/libinput/events.c index 1bf70ce2..25e71b72 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -47,7 +47,7 @@ bool wlr_input_device_is_libinput(struct wlr_input_device *wlr_dev) { case WLR_INPUT_DEVICE_TOUCH: return wlr_touch_from_input_device(wlr_dev)->impl == &libinput_touch_impl; - case WLR_INPUT_DEVICE_TABLET_TOOL: + case WLR_INPUT_DEVICE_TABLET: return wlr_tablet_from_input_device(wlr_dev)-> impl == &libinput_tablet_impl; case WLR_INPUT_DEVICE_TABLET_PAD: |