diff --git a/include/input/drawing_tablet.h b/include/input/tablet.h similarity index 67% rename from include/input/drawing_tablet.h rename to include/input/tablet.h index 8043e7a5..4d6c50ba 100644 --- a/include/input/drawing_tablet.h +++ b/include/input/tablet.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef LABWC_DRAWING_TABLET_H -#define LABWC_DRAWING_TABLET_H +#ifndef LABWC_TABLET_H +#define LABWC_TABLET_H #include struct seat; @@ -20,6 +20,6 @@ struct drawing_tablet { } handlers; }; -void drawing_tablet_setup_handlers(struct seat *seat, struct wlr_input_device *wlr_input_device); +void tablet_setup_handlers(struct seat *seat, struct wlr_input_device *wlr_input_device); -#endif /* LABWC_DRAWING_TABLET_H */ +#endif /* LABWC_TABLET_H */ diff --git a/src/input/meson.build b/src/input/meson.build index 91d897a9..9b8b9a20 100644 --- a/src/input/meson.build +++ b/src/input/meson.build @@ -1,6 +1,6 @@ labwc_sources += files( 'cursor.c', - 'drawing_tablet.c', + 'tablet.c', 'gestures.c', 'input.c', 'keyboard.c', diff --git a/src/input/drawing_tablet.c b/src/input/tablet.c similarity index 96% rename from src/input/drawing_tablet.c rename to src/input/tablet.c index 37d05f21..14ee9566 100644 --- a/src/input/drawing_tablet.c +++ b/src/input/tablet.c @@ -9,7 +9,7 @@ #include "common/mem.h" #include "config/rcxml.h" #include "input/cursor.h" -#include "input/drawing_tablet.h" +#include "input/tablet.h" static void handle_axis(struct wl_listener *listener, void *data) @@ -109,7 +109,7 @@ setup_pen(struct seat *seat, struct wlr_input_device *wlr_device) } void -drawing_tablet_setup_handlers(struct seat *seat, struct wlr_input_device *device) +tablet_setup_handlers(struct seat *seat, struct wlr_input_device *device) { switch (device->type) { case WLR_INPUT_DEVICE_TABLET_PAD: diff --git a/src/seat.c b/src/seat.c index 5a603c5a..f450999b 100644 --- a/src/seat.c +++ b/src/seat.c @@ -9,7 +9,7 @@ #include #include #include "common/mem.h" -#include "input/drawing_tablet.h" +#include "input/tablet.h" #include "input/input.h" #include "input/keyboard.h" #include "input/key-state.h" @@ -270,7 +270,7 @@ new_tablet(struct seat *seat, struct wlr_input_device *dev) { struct input *input = znew(*input); input->wlr_input_device = dev; - drawing_tablet_setup_handlers(seat, dev); + tablet_setup_handlers(seat, dev); return input; }