[gnome-settings-daemon] Fix screen mapping for Cintiqs and others
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] Fix screen mapping for Cintiqs and others
- Date: Mon, 15 Jan 2018 10:26:36 +0000 (UTC)
commit 9b08637bc3c907886b03accad6f9f4b1a2a575dc
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 fae4150..d4f7bc3 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -257,6 +257,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]