mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 02:50:41 -05:00
backends: Fallback to builtin panel for devices where all heuristics fail
This is 1) relatively likely as not all touchscreens are nice enough to report a device size that will help us here and 2) Better than nothing if everything fails anyway, as it will break on multi-monitor and non-default monitor rotations. Closes: https://gitlab.gnome.org/GNOME/mutter/issues/581
This commit is contained in:
parent
668c44e66b
commit
f9d6627fe0
@ -381,7 +381,7 @@ guess_candidates (MetaInputMapper *mapper,
|
|||||||
info->candidates[META_MATCH_SIZE] = matched_monitor;
|
info->candidates[META_MATCH_SIZE] = matched_monitor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input->builtin)
|
if (input->builtin || best == N_OUTPUT_MATCHES)
|
||||||
{
|
{
|
||||||
best = MIN (best, META_MATCH_IS_BUILTIN);
|
best = MIN (best, META_MATCH_IS_BUILTIN);
|
||||||
find_builtin_output (mapper, &info->candidates[META_MATCH_IS_BUILTIN]);
|
find_builtin_output (mapper, &info->candidates[META_MATCH_IS_BUILTIN]);
|
||||||
|
Loading…
Reference in New Issue
Block a user