[gnome-settings-daemon] wacom: Fix failure to get area with the cursor device



commit d851e9b754e1b153b246fc92fa7dddca71e7a15e
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 8 18:30:00 2013 +0200

    wacom: Fix failure to get area with the cursor device
    
    The cursor device isn't an absolute device, so don't expect
    to find one.

 plugins/wacom/gsd-wacom-device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-device.c b/plugins/wacom/gsd-wacom-device.c
index cd75960..fb1b176 100644
--- a/plugins/wacom/gsd-wacom-device.c
+++ b/plugins/wacom/gsd-wacom-device.c
@@ -1929,7 +1929,7 @@ fill_old_axis (int     device_id,
                                XValuatorInfoPtr V = (XValuatorInfoPtr) any;
                                XAxisInfoPtr ax = (XAxisInfoPtr) V->axes;
 
-                               if (V->mode == Absolute && V->num_axes >= 2) {
+                               if (V->num_axes >= 2) {
                                        *items[0] = ax[0].min_value;
                                        *items[1] = ax[0].max_value;
                                        *items[2] = ax[1].min_value;


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