From 84b078263007bcc40fb246a75ce7a1bb3ca62d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Fri, 6 Jan 2023 11:31:36 +0100 Subject: [PATCH 9/9] winex11: Disable keyboard scancode auto-detection by default. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30984 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45605 --- dlls/winex11.drv/x11drv_main.c | 2 +- programs/winecfg/input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index bbdd5ad7010..6568fcc1c41 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -80,7 +80,7 @@ BOOL show_systray = TRUE; BOOL grab_pointer = TRUE; BOOL grab_fullscreen = FALSE; int keyboard_layout = -1; -BOOL keyboard_scancode_detect = TRUE; +BOOL keyboard_scancode_detect = FALSE; BOOL managed_mode = TRUE; BOOL decorated_mode = TRUE; BOOL private_color_map = FALSE; diff --git a/programs/winecfg/input.c b/programs/winecfg/input.c index a9d83b45f00..3ee20d49874 100644 --- a/programs/winecfg/input.c +++ b/programs/winecfg/input.c @@ -65,7 +65,7 @@ static void init_dialog( HWND dialog ) else SendMessageW( layouts, CB_SELECTSTRING, -1, (LPARAM)buffer ); free( buffer ); - buffer = get_reg_key( config_key, keypath( L"X11 Driver" ), L"KeyboardScancodeDetect", L"Y" ); + buffer = get_reg_key( config_key, keypath( L"X11 Driver" ), L"KeyboardScancodeDetect", L"N" ); if (IS_OPTION_TRUE( *buffer )) CheckDlgButton( dialog, IDC_KEYBOARD_SCANCODE_DETECT, BST_CHECKED ); else CheckDlgButton( dialog, IDC_KEYBOARD_SCANCODE_DETECT, BST_UNCHECKED ); free( buffer ); -- 2.39.1