mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch
This commit is contained in:
parent
a92e5f8d46
commit
96ccc50c57
6 changed files with 15 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue