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>
This commit is contained in:
Carlos Garnacho 2022-12-16 23:06:33 +01:00 committed by Marge Bot
parent 0d69fabbe6
commit ba25271408

View File

@ -455,7 +455,7 @@ guess_candidates (MetaInputMapper *mapper,
g_assert (META_IS_MONITOR (l->data)); 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; match.score |= 1 << edid_match;
if (integrated && match_size (input, l->data)) if (integrated && match_size (input, l->data))