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
f32483dd
Commit
f32483dd
authored
Feb 24, 2010
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Generate IME messages as needed.
parent
4c088cbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
ime.c
dlls/winex11.drv/ime.c
+17
-3
No files found.
dlls/winex11.drv/ime.c
View file @
f32483dd
...
...
@@ -1055,10 +1055,14 @@ BOOL IME_SetCompositionString(DWORD dwIndex, LPCVOID lpComp, DWORD dwCompLen,
void
IME_SetResultString
(
LPWSTR
lpResult
,
DWORD
dwResultLen
)
{
HIMC
imc
;
LPINPUTCONTEXT
lpIMC
;
HIMCC
newCompStr
;
LPIMEPRIVATE
myPrivate
;
BOOL
fOpen
;
lpIMC
=
LockRealIMC
(
FROM_X11
);
imc
=
RealIMC
(
FROM_X11
);
lpIMC
=
ImmLockIMC
(
imc
);
if
(
lpIMC
==
NULL
)
return
;
...
...
@@ -1066,9 +1070,19 @@ void IME_SetResultString(LPWSTR lpResult, DWORD dwResultLen)
ImmDestroyIMCC
(
lpIMC
->
hCompStr
);
lpIMC
->
hCompStr
=
newCompStr
;
GenerateIMEMessage
(
FROM_X11
,
WM_IME_COMPOSITION
,
0
,
GCS_RESULTSTR
);
myPrivate
=
ImmLockIMCC
(
lpIMC
->
hPrivate
);
fOpen
=
lpIMC
->
fOpen
;
ImmSetOpenStatus
(
imc
,
TRUE
);
if
(
!
myPrivate
->
bInComposition
)
GenerateIMEMessage
(
imc
,
WM_IME_STARTCOMPOSITION
,
0
,
0
);
GenerateIMEMessage
(
imc
,
WM_IME_COMPOSITION
,
0
,
GCS_RESULTSTR
);
if
(
!
myPrivate
->
bInComposition
)
GenerateIMEMessage
(
imc
,
WM_IME_ENDCOMPOSITION
,
0
,
0
);
if
(
!
fOpen
)
ImmSetOpenStatus
(
imc
,
FALSE
);
ImmUnlockIMCC
(
lpIMC
->
hPrivate
);
UnlockRealIMC
(
FROM_X11
);
ImmUnlockIMC
(
imc
);
}
/*****
...
...
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