Module: wine
Branch: master
Commit: b5359b7da0dc5d86b4cbbcf5170c818083ac7766
URL: https://gitlab.winehq.org/wine/wine/-/commit/b5359b7da0dc5d86b4cbbcf5170c81…
Author: Daniel Hill <daniel(a)gluo.nz>
Date: Thu Jan 18 20:35:13 2024 +1300
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(a)gluo.nz>
---
dlls/winex11.drv/keyboard.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 89bf7da550a..2e7a118c110 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -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;
Module: wine
Branch: master
Commit: 4fb14b565690857be08958852b759122e1a4e2ef
URL: https://gitlab.winehq.org/wine/wine/-/commit/4fb14b565690857be08958852b7591…
Author: Daniel Hill <daniel(a)gluo.nz>
Date: Thu Jan 18 17:23:05 2024 +1300
winex11.drv: Dvorak should use QWERTY scancodes.
This make dvorak more consistent with X11/Wayland/Windows, qwertz and
azerty layouts having the same physical scancode layout as a qwerty
keyboard and only differing in the labels on the keycaps.
Signed-off-by: Daniel Hill <daniel(a)gluo.nz>
---
dlls/winex11.drv/keyboard.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 5c7f6c37276..89bf7da550a 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -99,19 +99,6 @@ static const WORD main_key_scan_abnt_qwerty[MAIN_LEN] =
0x56, /* the 102nd key (actually to the right of l-shift) */
};
-static const WORD main_key_scan_dvorak[MAIN_LEN] =
-{
- /* ` 1 2 3 4 5 6 7 8 9 0 [ ] */
- 0x29,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x1A,0x1B,
- /* ' , . p y f g c r l / = */
- 0x28,0x33,0x34,0x19,0x15,0x21,0x22,0x2E,0x13,0x26,0x35,0x0D,
- /* a o e u i d h t n s - \ */
- 0x1E,0x18,0x12,0x16,0x17,0x20,0x23,0x14,0x31,0x1F,0x0C,0x2B,
- /* ; q j k x b m w v z */
- 0x27,0x10,0x24,0x25,0x2D,0x30,0x32,0x11,0x2F,0x2C,
- 0x56 /* the 102nd key (actually to the right of l-shift) */
-};
-
static const WORD main_key_scan_qwerty_jp106[MAIN_LEN] =
{
/* 1 2 3 4 5 6 7 8 9 0 - ^ \ (Yen) */
@@ -866,7 +853,8 @@ static const struct {
} main_key_tab[]={
{0x0409, "United States keyboard layout", &main_key_US, &main_key_scan_qwerty, &main_key_vkey_qwerty},
{0x0409, "United States keyboard layout (phantom key version)", &main_key_US_phantom, &main_key_scan_qwerty, &main_key_vkey_qwerty},
- {0x0409, "United States keyboard layout (dvorak)", &main_key_US_dvorak, &main_key_scan_dvorak, &main_key_vkey_dvorak},
+ /* Dvorak users tend to run QWERTY keyboards and rely on Windows/X11/Wayland to translate to the correct keysyms */
+ {0x0409, "United States keyboard layout (dvorak)", &main_key_US_dvorak, &main_key_scan_qwerty, &main_key_vkey_dvorak},
{0x0409, "United States International keyboard layout", &main_key_US_intl, &main_key_scan_qwerty, &main_key_vkey_qwerty},
{0x0809, "British keyboard layout", &main_key_UK, &main_key_scan_qwerty, &main_key_vkey_qwerty},
{0x0407, "German keyboard layout", &main_key_DE, &main_key_scan_qwerty, &main_key_vkey_qwertz},
Module: wine
Branch: master
Commit: 6d0fcf64d22aae81b47a796d1a352914032209c0
URL: https://gitlab.winehq.org/wine/wine/-/commit/6d0fcf64d22aae81b47a796d1a3529…
Author: Martin Storsjö <martin(a)martin.st>
Date: Wed Jan 24 15:26:30 2024 +0200
ntdll: Remove dwarf unwinding support for aarch64.
Since recently, unwinding never should need to look at the
unix libs any longer, and as aarch64 requires PE builds, there
should be no need to unwind through any .dll.so files any
longer.
Signed-off-by: Martin Storsjö <martin(a)martin.st>
---
dlls/ntdll/signal_arm64.c | 48 +++-----------
dlls/ntdll/unix/dwarf.h | 4 +-
dlls/ntdll/unix/signal_arm64.c | 144 +----------------------------------------
3 files changed, 13 insertions(+), 183 deletions(-)