diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2022-12-16 23:06:33 +0100 |
---|---|---|
committer | Robert Mader <robert.mader@collabora.com> | 2023-01-06 13:54:15 +0100 |
commit | a206f9654ed28903de567f20d04de68e06c4ba98 (patch) | |
tree | 33f23f1c94786caf91659aff730dfb018510fb12 | |
parent | da8f27a5512974fa7061b29ecd3a71c050b02a73 (diff) | |
download | mutter-a206f9654ed28903de567f20d04de68e06c4ba98.tar.gz |
backends: Only apply EDID-based tablet mapping heuristic on integrated devices
These are the ones attached to a display, thus they are the ones that may need
help from this heuristic. Non-integrated tablets (e.g. Intuos) will default to
the span of all monitors.
Fixes mapping of opaque tablets if a display-integrated tablet of the same
brand is also plugged in.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2767>
(cherry picked from commit ba25271408a32a2a73a82acc6e094a611001c9f0)
-rw-r--r-- | src/backends/meta-input-mapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/meta-input-mapper.c b/src/backends/meta-input-mapper.c index 03a29f1a8..ae4cd05f9 100644 --- a/src/backends/meta-input-mapper.c +++ b/src/backends/meta-input-mapper.c @@ -472,7 +472,7 @@ guess_candidates (MetaInputMapper *mapper, g_assert (META_IS_MONITOR (l->data)); - if (match_edid (input, l->data, &edid_match)) + if (integrated && match_edid (input, l->data, &edid_match)) match.score |= 1 << edid_match; if (integrated && match_size (input, l->data)) |