[gnome-settings-daemon] common: Fix typo in udev GsdDeviceManager implementation



commit d0ff81426266d3873afdbdf52cb817275caaf5d6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 29 15:36:29 2017 +0200

    common: Fix typo in udev GsdDeviceManager implementation
    
    This would yield the wrong size, specially harmful for touchscreens as
    there's no other backing heuristic here. This may result in touchscreens
    being assigned the wrong output if there's several of them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784341

 plugins/common/gsd-device-manager-udev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/gsd-device-manager-udev.c b/plugins/common/gsd-device-manager-udev.c
index 6289f55..3fb378e 100644
--- a/plugins/common/gsd-device-manager-udev.c
+++ b/plugins/common/gsd-device-manager-udev.c
@@ -91,7 +91,7 @@ create_device (GUdevDevice *udev_device)
        vendor = g_udev_device_get_property (udev_device, "ID_VENDOR_ID");
        product = g_udev_device_get_property (udev_device, "ID_MODEL_ID");
        width = g_udev_device_get_property_as_int (udev_device, "ID_INPUT_WIDTH_MM");
-       height = g_udev_device_get_property_as_int (udev_device, "ID_INPUT_WIDTH_MM");
+       height = g_udev_device_get_property_as_int (udev_device, "ID_INPUT_HEIGHT_MM");
 
        device = g_object_new (GSD_TYPE_DEVICE,
                               "name", name,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]