Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
179c5760
Commit
179c5760
authored
May 05, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
May 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add current keyboard layout to thread data.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fdf568aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
defwnd.c
dlls/user32/defwnd.c
+2
-0
input.c
dlls/user32/input.c
+4
-0
user_private.h
dlls/user32/user_private.h
+1
-0
No files found.
dlls/user32/defwnd.c
View file @
179c5760
...
...
@@ -728,8 +728,10 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
case
WM_INPUTLANGCHANGE
:
{
struct
user_thread_info
*
info
=
get_user_thread_info
();
int
count
=
0
;
HWND
*
win_array
=
WIN_ListChildren
(
hwnd
);
info
->
kbd_layout
=
(
HKL
)
lParam
;
if
(
!
win_array
)
break
;
...
...
dlls/user32/input.c
View file @
179c5760
...
...
@@ -1316,6 +1316,7 @@ INT WINAPI ToAsciiEx( UINT virtKey, UINT scanCode, const BYTE *lpKeyState,
*/
HKL
WINAPI
ActivateKeyboardLayout
(
HKL
layout
,
UINT
flags
)
{
struct
user_thread_info
*
info
=
get_user_thread_info
();
HKL
old_layout
;
TRACE_
(
keyboard
)(
"layout %p, flags %x
\n
"
,
layout
,
flags
);
...
...
@@ -1330,7 +1331,10 @@ HKL WINAPI ActivateKeyboardLayout( HKL layout, UINT flags )
}
if
((
old_layout
=
USER_Driver
->
pActivateKeyboardLayout
(
layout
,
flags
))
!=
(
HKL
)
~
0
)
{
if
(
old_layout
)
info
->
kbd_layout
=
layout
;
return
old_layout
;
}
return
get_locale_kbd_layout
();
}
...
...
dlls/user32/user_private.h
View file @
179c5760
...
...
@@ -199,6 +199,7 @@ struct user_thread_info
DWORD
GetMessagePosVal
;
/* Value for GetMessagePos */
ULONG_PTR
GetMessageExtraInfoVal
;
/* Value for GetMessageExtraInfo */
struct
user_key_state_info
*
key_state
;
/* Cache of global key state */
HKL
kbd_layout
;
/* Current keyboard layout */
HWND
top_window
;
/* Desktop window */
HWND
msg_window
;
/* HWND_MESSAGE parent window */
struct
rawinput_thread_data
*
rawinput
;
/* RawInput thread local data / buffer */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment