[gnome-settings-daemon/gnome-3-24] common: Exclude non-display	attached devices from remapping
- From: Rui Matos <rtcm src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-settings-daemon/gnome-3-24] common: Exclude non-display	attached devices from remapping
 
- Date: Sat, 22 Jul 2017 16:56:00 +0000 (UTC)
 
commit 238fd724270d155b4a11dc8fcb51f1d7eea9f93e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jul 21 21:39:22 2017 +0200
    common: Exclude non-display attached devices from remapping
    
    GsdDeviceMapper has no business with non system/display-attached
    devices. Make it really sure those are untouched.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784837
 plugins/common/gsd-device-mapper.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index 6ea1376..6894557 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -559,6 +559,9 @@ input_info_remap (GsdInputInfo *input)
 
        if (input->capabilities & GSD_INPUT_IS_PAD)
                return;
+       if ((input->capabilities &
+           (GSD_INPUT_IS_SCREEN_INTEGRATED | GSD_INPUT_IS_SYSTEM_INTEGRATED)) == 0)
+               return;
 
        output = input_info_get_output (input);
        settings_set_display (gsd_device_get_settings (input->device),
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]