[gnome-settings-daemon/gnome-3-24] Fix screen mapping for Cintiqs and others



commit e6c695676dd948b5de938207647915f5cf488da0
Author: Benjamin Tissoires <benjamin tissoires redhat com>
Date:   Thu Nov 2 10:24:43 2017 +0100

    Fix screen mapping for Cintiqs and others
    
    Size-based input/output matching doesn't raise the "found" flag, which
    would result on input_info_guess_candidates() still trying to assign the
    builtin output to the input device if that is the only match found.
    
    For screen integrated devices (i.e. not on the builtin output) this is
    and undesirable possibility, setting the "found" flag to TRUE results on
    the correct output being assigned.
    
    Signed-off-by: Benjamin Tissoires <benjamin tissoires redhat com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748589

 plugins/common/gsd-device-mapper.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index b1fcac0..1b278df 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -284,6 +284,7 @@ input_info_guess_candidates (GsdInputInfo  *input,
 
        if (input->capabilities & GSD_INPUT_IS_SCREEN_INTEGRATED) {
                outputs[GSD_PRIO_MATCH_SIZE] = input_info_find_size_match (input, input->mapper->rr_screen);
+               found |= outputs[GSD_PRIO_MATCH_SIZE] != NULL;
        }
 
        split = g_strsplit (name, " ", -1);


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