Blame SOURCES/0001-backends-Only-apply-EDID-based-tablet-mapping-heuris.patch

1679d1
From ba25271408a32a2a73a82acc6e094a611001c9f0 Mon Sep 17 00:00:00 2001
1679d1
From: Carlos Garnacho <carlosg@gnome.org>
1679d1
Date: Fri, 16 Dec 2022 23:06:33 +0100
1679d1
Subject: [PATCH] backends: Only apply EDID-based tablet mapping heuristic on
1679d1
 integrated devices
1679d1
1679d1
These are the ones attached to a display, thus they are the ones that may need
1679d1
help from this heuristic. Non-integrated tablets (e.g. Intuos) will default to
1679d1
the span of all monitors.
1679d1
1679d1
Fixes mapping of opaque tablets if a display-integrated tablet of the same
1679d1
brand is also plugged in.
1679d1
1679d1
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2767>
1679d1
---
1679d1
 src/backends/meta-input-mapper.c | 2 +-
1679d1
 1 file changed, 1 insertion(+), 1 deletion(-)
1679d1
1679d1
diff --git a/src/backends/meta-input-mapper.c b/src/backends/meta-input-mapper.c
1679d1
index cc75f14e8..71d193e5f 100644
1679d1
--- a/src/backends/meta-input-mapper.c
1679d1
+++ b/src/backends/meta-input-mapper.c
1679d1
@@ -455,7 +455,7 @@ guess_candidates (MetaInputMapper     *mapper,
1679d1
 
1679d1
       g_assert (META_IS_MONITOR (l->data));
1679d1
 
1679d1
-      if (match_edid (input, l->data, &edid_match))
1679d1
+      if (integrated && match_edid (input, l->data, &edid_match))
1679d1
         match.score |= 1 << edid_match;
1679d1
 
1679d1
       if (integrated && match_size (input, l->data))
1679d1
-- 
1679d1
2.38.1
1679d1