types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch

This commit is contained in:
Simon Zeni 2022-03-08 16:54:28 -05:00
parent a92e5f8d46
commit 96ccc50c57
6 changed files with 15 additions and 8 deletions

View file

@ -29,8 +29,6 @@ struct wlr_input_device {
enum wlr_input_device_type type;
unsigned int vendor, product;
char *name;
// Or 0 if not applicable to this device
double width_mm, height_mm;
/* wlr_input_device.type determines which of these is valid */
union {

View file

@ -64,6 +64,8 @@ struct wlr_tablet {
const struct wlr_tablet_impl *impl;
double width_mm, height_mm;
struct {
struct wl_signal axis;
struct wl_signal proximity;

View file

@ -21,6 +21,7 @@ struct wlr_touch {
const struct wlr_touch_impl *impl;
char *output_name;
double width_mm, height_mm;
struct {
struct wl_signal down; // struct wlr_event_touch_down