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
1b778dbe
Commit
1b778dbe
authored
Mar 28, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Send WM_IME_SELECT messages when IME is activated.
parent
e64e4e74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
imm.c
dlls/imm32/imm.c
+4
-4
imm32.c
dlls/imm32/tests/imm32.c
+0
-4
No files found.
dlls/imm32/imm.c
View file @
1b778dbe
...
...
@@ -619,7 +619,6 @@ static BOOL free_input_context_data( HIMC hIMC )
if
(
data
->
ui_hwnd
)
DestroyWindow
(
data
->
ui_hwnd
);
data
->
ime
->
pImeSelect
(
hIMC
,
FALSE
);
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SELECT
,
FALSE
,
(
LPARAM
)
data
->
ime
);
ImmDestroyIMCC
(
data
->
IMC
.
hCompStr
);
ImmDestroyIMCC
(
data
->
IMC
.
hCandInfo
);
...
...
@@ -912,7 +911,6 @@ static struct imc *create_input_context( HIMC default_imc )
}
imc_select_hkl
(
new_context
,
GetKeyboardLayout
(
0
)
);
SendMessageW
(
GetFocus
(),
WM_IME_SELECT
,
TRUE
,
(
LPARAM
)
new_context
->
ime
);
TRACE
(
"Created context %p
\n
"
,
new_context
);
return
new_context
;
...
...
@@ -3164,10 +3162,12 @@ static LRESULT ime_internal_msg( WPARAM wparam, LPARAM lparam)
break
;
case
IME_INTERNAL_HKL_ACTIVATE
:
ImmEnumInputContext
(
0
,
enum_activate_layout
,
0
);
hwnd
=
get_ime_ui_window
();
if
(
!
(
hwnd
=
get_ime_ui_window
()))
break
;
SendMessageW
(
hwnd
,
WM_IME_SELECT
,
TRUE
,
lparam
);
break
;
case
IME_INTERNAL_HKL_DEACTIVATE
:
hwnd
=
get_ime_ui_window
();
if
(
!
(
hwnd
=
get_ime_ui_window
()))
break
;
SendMessageW
(
hwnd
,
WM_IME_SELECT
,
FALSE
,
lparam
);
break
;
default:
FIXME
(
"wparam = %Ix
\n
"
,
wparam
);
...
...
dlls/imm32/tests/imm32.c
View file @
1b778dbe
...
...
@@ -4023,7 +4023,6 @@ static void test_ImmActivateLayout(void)
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_SELECT
,
.
wparam
=
1
,
.
lparam
=
(
LPARAM
)
expect_ime
},
.
todo
=
TRUE
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
...
...
@@ -4062,7 +4061,6 @@ static void test_ImmActivateLayout(void)
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_SELECT
,
.
wparam
=
0
,
.
lparam
=
(
LPARAM
)
expect_ime
},
.
todo
=
TRUE
,
},
{
.
hkl
=
default_hkl
,
.
himc
=
default_himc
,
...
...
@@ -4224,7 +4222,6 @@ static void test_ImmCreateInputContext(void)
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_SELECT
,
.
wparam
=
1
,
.
lparam
=
(
LPARAM
)
expect_ime
},
.
todo
=
TRUE
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
...
...
@@ -4270,7 +4267,6 @@ static void test_ImmCreateInputContext(void)
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_SELECT
,
.
wparam
=
0
,
.
lparam
=
(
LPARAM
)
expect_ime
},
.
todo
=
TRUE
,
},
{
.
hkl
=
default_hkl
,
.
himc
=
default_himc
,
...
...
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