mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
input-mapper: Don't loop infinitely in EDID matching
Iterate over all the monitor product words to check for a partial matching on EDID, otherwise we would hang inside an infinite while loop. Fixes https://gitlab.gnome.org/GNOME/mutter/issues/459
This commit is contained in:
parent
d587fc1ef4
commit
29ed84e921
@ -249,12 +249,12 @@ match_edid (MetaMapperInputInfo *input,
|
||||
}
|
||||
else
|
||||
{
|
||||
int i;
|
||||
char **split;
|
||||
int i = 0;
|
||||
|
||||
split = g_strsplit (meta_monitor_get_product (monitor), " ", -1);
|
||||
|
||||
while (split[i])
|
||||
for (i = 0; split[i]; i++)
|
||||
{
|
||||
if (strcasestr (dev_name, split[i]) != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user