2023-12-01 15:23:49 -08:00
|
|
|
From cdb9c20dfeede2240d102ac2f407f58591b3ec2d Mon Sep 17 00:00:00 2001
|
2023-02-07 03:35:38 -08:00
|
|
|
From: =?UTF-8?q?R=C3=A9mi=20Bernon?= <rbernon@codeweavers.com>
|
|
|
|
Date: Fri, 6 Jan 2023 11:31:36 +0100
|
2023-06-12 16:20:03 -07:00
|
|
|
Subject: [PATCH] winex11: Disable keyboard scancode auto-detection by default.
|
2023-02-07 03:35:38 -08:00
|
|
|
|
|
|
|
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
|
2023-12-01 15:23:49 -08:00
|
|
|
index 782989dab4b..3bee214e09b 100644
|
2023-02-07 03:35:38 -08:00
|
|
|
--- a/dlls/winex11.drv/x11drv_main.c
|
|
|
|
+++ b/dlls/winex11.drv/x11drv_main.c
|
2023-12-01 15:23:49 -08:00
|
|
|
@@ -76,7 +76,7 @@ BOOL use_primary_selection = FALSE;
|
|
|
|
BOOL use_system_cursors = TRUE;
|
2023-02-07 03:35:38 -08:00
|
|
|
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 );
|
|
|
|
--
|
2023-12-01 15:23:49 -08:00
|
|
|
2.42.0
|
2023-02-07 03:35:38 -08:00
|
|
|
|