Use wlr_list for paths, and improve inert resource handling

This commit is contained in:
Markus Ongyerth 2018-05-15 16:16:19 +02:00
parent adba68a3c1
commit 0c9a26828a
7 changed files with 55 additions and 54 deletions

View file

@ -4,6 +4,7 @@
#include <stdint.h>
#include <wayland-server.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_list.h>
/*
* NOTE: the wlr tablet pad implementation does not currently support tablets
@ -28,7 +29,7 @@ struct wlr_tablet_pad {
size_t strip_count;
struct wl_list groups; // wlr_tablet_pad_group::link
struct wl_list paths; // wlr_tablet_path::link
struct wlr_list paths; // char *
void *data;
};

View file

@ -4,6 +4,7 @@
#include <stdint.h>
#include <wayland-server.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_list.h>
/*
* Copy+Paste from libinput, but this should neither use libinput, nor
@ -42,11 +43,6 @@ struct wlr_tablet_tool_tool {
struct wlr_tablet_tool_impl;
struct wlr_tablet_path {
struct wl_list link;
char *path;
};
struct wlr_tablet_tool {
struct wlr_tablet_tool_impl *impl;
@ -58,7 +54,7 @@ struct wlr_tablet_tool {
} events;
const char *name;
struct wl_list paths; // wlr_table_path::link
struct wlr_list paths; // char *
void *data;
};