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
bb2414fd
Commit
bb2414fd
authored
Mar 28, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Re-create the IME UI window when IME changes.
parent
2504a2d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
imm.c
dlls/imm32/imm.c
+4
-1
imm32.c
dlls/imm32/tests/imm32.c
+1
-1
No files found.
dlls/imm32/imm.c
View file @
bb2414fd
...
...
@@ -3150,21 +3150,24 @@ static BOOL is_ime_ui_msg(UINT msg)
static
LRESULT
ime_internal_msg
(
WPARAM
wparam
,
LPARAM
lparam
)
{
HWND
hwnd
=
(
HWND
)
lparam
;
HWND
hwnd
;
HIMC
himc
;
switch
(
wparam
)
{
case
IME_INTERNAL_ACTIVATE
:
case
IME_INTERNAL_DEACTIVATE
:
hwnd
=
(
HWND
)
lparam
;
himc
=
ImmGetContext
(
hwnd
);
ImmSetActiveContext
(
hwnd
,
himc
,
wparam
==
IME_INTERNAL_ACTIVATE
);
ImmReleaseContext
(
hwnd
,
himc
);
break
;
case
IME_INTERNAL_HKL_ACTIVATE
:
ImmEnumInputContext
(
0
,
enum_activate_layout
,
0
);
hwnd
=
get_ime_ui_window
();
break
;
case
IME_INTERNAL_HKL_DEACTIVATE
:
hwnd
=
get_ime_ui_window
();
break
;
default:
FIXME
(
"wparam = %Ix
\n
"
,
wparam
);
...
...
dlls/imm32/tests/imm32.c
View file @
bb2414fd
...
...
@@ -4183,7 +4183,7 @@ static void test_ImmActivateLayout(void)
ok_ret
(
1
,
EnumThreadWindows
(
GetCurrentThreadId
(),
enum_thread_ime_windows
,
(
LPARAM
)
&
ime_windows
)
);
ok
(
!!
ime_windows
.
ime_hwnd
,
"missing IME window
\n
"
);
todo_wine
ok
(
!!
ime_windows
.
ime_ui_hwnd
,
"missing IME UI window
\n
"
);
ok
(
!!
ime_windows
.
ime_ui_hwnd
,
"missing IME UI window
\n
"
);
todo_wine
ok_ret
(
(
UINT_PTR
)
ime_windows
.
ime_hwnd
,
(
UINT_PTR
)
GetParent
(
ime_windows
.
ime_ui_hwnd
)
);
todo_ImeDestroy
=
TRUE
;
/* Wine doesn't leak the IME */
...
...
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