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

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