]> git.mdlowis.com Git - proto/labwc.git/commitdiff
input: rename drawing_tablet to tablet
authorJens Peters <jp7677@gmail.com>
Fri, 29 Dec 2023 09:10:41 +0000 (10:10 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 29 Dec 2023 20:22:46 +0000 (20:22 +0000)
include/input/tablet.h [moved from include/input/drawing_tablet.h with 67% similarity]
src/input/meson.build
src/input/tablet.c [moved from src/input/drawing_tablet.c with 96% similarity]
src/seat.c

similarity index 67%
rename from include/input/drawing_tablet.h
rename to include/input/tablet.h
index 8043e7a5f543e804c4854b9f362bbd9ea2cefe98..4d6c50badc50bee9dac15e283759ecb53e7c690a 100644 (file)
@@ -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 <wayland-server-core.h>
 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 */
index 91d897a9662ee9a67cc707c12464bbb9f12d81f8..9b8b9a20d6aeca1e365b323903b2a0dabd4ed9e5 100644 (file)
@@ -1,6 +1,6 @@
 labwc_sources += files(
   'cursor.c',
-  'drawing_tablet.c',
+  'tablet.c',
   'gestures.c',
   'input.c',
   'keyboard.c',
similarity index 96%
rename from src/input/drawing_tablet.c
rename to src/input/tablet.c
index 37d05f2156119bb8f04d43872e0a6cb73247e50d..14ee95660c4ef0214d73adbae52558afd235aff7 100644 (file)
@@ -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:
index 5a603c5a276134d335f0d4be1d5adc2e67066096..f450999b9af0ce2b28cef3b1d856a3d857eec2ea 100644 (file)
@@ -9,7 +9,7 @@
 #include <wlr/types/wlr_touch.h>
 #include <wlr/util/log.h>
 #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;
 }