aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2024-02-29 13:31:00 +0100
committerIsaac Freund <mail@isaacfreund.com>2024-02-29 16:09:07 +0100
commitb821be5749061b0b73d777cb2fc74204cbf78278 (patch)
treee67d855a13f592f6e06afef8b34b96ec00a4f1c3 /examples
parent889150f8660a3e802d377670e57f3951c9266510 (diff)
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 'examples')
-rw-r--r--examples/pointer.c2
-rw-r--r--examples/tablet.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index 81529e88..fed37a5b 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -298,7 +298,7 @@ static void new_input_notify(struct wl_listener *listener, void *data) {
switch (device->type) {
case WLR_INPUT_DEVICE_POINTER:
case WLR_INPUT_DEVICE_TOUCH:
- case WLR_INPUT_DEVICE_TABLET_TOOL:
+ case WLR_INPUT_DEVICE_TABLET:
wlr_cursor_attach_input_device(state->cursor, device);
break;
diff --git a/examples/tablet.c b/examples/tablet.c
index 7e9116a8..8f0754df 100644
--- a/examples/tablet.c
+++ b/examples/tablet.c
@@ -351,7 +351,7 @@ static void new_input_notify(struct wl_listener *listener, void *data) {
wl_signal_add(&pstate->wlr_tablet_pad->events.ring, &pstate->ring);
wl_list_insert(&sample->tablet_pads, &pstate->link);
break;
- case WLR_INPUT_DEVICE_TABLET_TOOL:;
+ case WLR_INPUT_DEVICE_TABLET:;
struct wlr_tablet *tablet = wlr_tablet_from_input_device(device);
sample->width_mm = tablet->width_mm == 0 ?
20 : tablet->width_mm;