]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: s/enum device_type/enum lab_libinput_device_type/
authorJohan Malm <jgm323@gmail.com>
Mon, 1 Jan 2024 19:15:16 +0000 (19:15 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 1 Jan 2024 22:04:21 +0000 (22:04 +0000)
include/config/libinput.h
src/config/libinput.c
src/seat.c

index ae362ab4be07538c306b28a6cca6728c38fe384f..4ec0ebb7deb561eb98a3521e926ac23ba6b30ba5 100644 (file)
@@ -6,7 +6,7 @@
 #include <string.h>
 #include <wayland-server-core.h>
 
-enum device_type {
+enum lab_libinput_device_type {
        LAB_LIBINPUT_DEVICE_NONE = 0,
        LAB_LIBINPUT_DEVICE_DEFAULT,
        LAB_LIBINPUT_DEVICE_TOUCH,
@@ -15,7 +15,7 @@ enum device_type {
 };
 
 struct libinput_category {
-       enum device_type type;
+       enum lab_libinput_device_type type;
        char *name;
        struct wl_list link;
        float pointer_speed;
@@ -30,7 +30,7 @@ struct libinput_category {
        int dwt; /* -1 or libinput_config_dwt_state */
 };
 
-enum device_type get_device_type(const char *s);
+enum lab_libinput_device_type get_device_type(const char *s);
 struct libinput_category *libinput_category_create(void);
 struct libinput_category *libinput_category_get_default(void);
 
index b2a1970ea06c9e618804fb2018079ef41d2faa65..4ea7499c72f1c7cd4fd53456ca244c163da1941c 100644 (file)
@@ -24,7 +24,7 @@ libinput_category_init(struct libinput_category *l)
        l->dwt = -1;
 }
 
-enum device_type
+enum lab_libinput_device_type
 get_device_type(const char *s)
 {
        if (!s || !*s) {
index f5564416bc925151f994889df12e27da80e92425..2f207a90cce608790a0dc05c72613266cc2968f1 100644 (file)
@@ -33,7 +33,7 @@ input_device_destroy(struct wl_listener *listener, void *data)
        free(input);
 }
 
-static enum device_type
+static enum lab_libinput_device_type
 device_type_from_wlr_device(struct wlr_input_device *wlr_input_device)
 {
        switch (wlr_input_device->type) {
@@ -76,7 +76,7 @@ get_category(struct wlr_input_device *device)
        }
 
        /* By type */
-       enum device_type type = device_type_from_wlr_device(device);
+       enum lab_libinput_device_type type = device_type_from_wlr_device(device);
        wl_list_for_each_reverse(category, &rc.libinput_categories, link) {
                if (category->type == type) {
                        return category;