mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
889150f866
commit
b821be5749
10 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue