winex11.drv: Improve DetectLayout heuristics.
Dvorak detection would sometimes fallback to Phantom keys, because we only use seq as a tie breaker greater emphasis on locality is required for layouts using the same language. Signed-off-by: Daniel Hill <daniel@gluo.nz>
This commit is contained in:
parent
4fb14b5656
commit
b5359b7da0
1 changed files with 1 additions and 2 deletions
|
@ -1522,8 +1522,7 @@ X11DRV_KEYBOARD_DetectLayout( Display *display )
|
|||
}
|
||||
TRACE("matches=%d, mismatches=%d, seq=%d, score=%d\n",
|
||||
match, mismatch, seq, score);
|
||||
if ((score > max_score) ||
|
||||
((score == max_score) && (seq > max_seq))) {
|
||||
if (score + (int)seq > max_score + (int)max_seq) {
|
||||
/* best match so far */
|
||||
kbd_layout = current;
|
||||
max_score = score;
|
||||
|
|
Loading…
Add table
Reference in a new issue