[PATCH libinput 1/2] evdev: Safe x and y resolution for later use
Hans de Goede
hdegoede at redhat.com
Wed Jun 18 05:22:23 PDT 2014
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/evdev.c | 2 ++
src/evdev.h | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/evdev.c b/src/evdev.c
index 51ad5e3..b72e5e1 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -608,11 +608,13 @@ evdev_configure_device(struct evdev_device *device)
if ((absinfo = libevdev_get_abs_info(evdev, ABS_X))) {
device->abs.min_x = absinfo->minimum;
device->abs.max_x = absinfo->maximum;
+ device->abs.res_x = absinfo->resolution;
has_abs = 1;
}
if ((absinfo = libevdev_get_abs_info(evdev, ABS_Y))) {
device->abs.min_y = absinfo->minimum;
device->abs.max_y = absinfo->maximum;
+ device->abs.res_y = absinfo->resolution;
has_abs = 1;
}
/* We only handle the slotted Protocol B in weston.
diff --git a/src/evdev.h b/src/evdev.h
index d057010..2db990f 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -66,7 +66,7 @@ struct evdev_device {
const char *devname;
int fd;
struct {
- int min_x, max_x, min_y, max_y;
+ int min_x, max_x, min_y, max_y, res_x, res_y;
int32_t x, y;
int32_t seat_slot;
--
2.0.0
More information about the wayland-devel
mailing list