winex11.drv: Allow keyboard layout score to be negative.
commit054b7c8204ea7be2157cbeb690dabc85c2eaa08b
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Wed, 9 Jun 2021 10:56:18 +0000 (9 12:56 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 9 Jun 2021 21:38:44 +0000 (9 23:38 +0200)
treeaa2f390d31d6cb1044f3194b6ae9770271a78788
parent25d25b234e81aa285ca02499ec15b4d26183281e
winex11.drv: Allow keyboard layout score to be negative.

The keyboard layout matching algorithm can assign a negative score
to a keyboard layout. If the user has a strange keyboard layout,
possibly a custom one, it might happen that all keyboard layouts
known by Wine get a negative score. This is not an error in itself,
and we should still strive to find the best match.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winex11.drv/keyboard.c