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
4ccbcb02
Commit
4ccbcb02
authored
Feb 16, 2010
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Handle result string directly.
parent
d3aa514a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
ime.c
dlls/winex11.drv/ime.c
+15
-2
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
xim.c
dlls/winex11.drv/xim.c
+1
-3
No files found.
dlls/winex11.drv/ime.c
View file @
4ccbcb02
...
...
@@ -1049,9 +1049,22 @@ BOOL IME_SetCompositionString(DWORD dwIndex, LPCVOID lpComp, DWORD dwCompLen,
lpRead
,
dwReadLen
);
}
BOOL
IME_NotifyIME
(
DWORD
dwAction
,
DWORD
dwIndex
,
DWORD
dwValue
)
void
IME_SetResultString
(
LPWSTR
lpResult
,
DWORD
dwResultLen
)
{
return
NotifyIME
(
FROM_X11
,
dwAction
,
dwIndex
,
dwValue
);
LPINPUTCONTEXT
lpIMC
;
HIMCC
newCompStr
;
lpIMC
=
LockRealIMC
(
FROM_X11
);
if
(
lpIMC
==
NULL
)
return
;
newCompStr
=
updateResultStr
(
lpIMC
->
hCompStr
,
lpResult
,
dwResultLen
);
ImmDestroyIMCC
(
lpIMC
->
hCompStr
);
lpIMC
->
hCompStr
=
newCompStr
;
GenerateIMEMessage
(
FROM_X11
,
WM_IME_COMPOSITION
,
0
,
GCS_RESULTSTR
);
UnlockRealIMC
(
FROM_X11
);
}
/*****
...
...
dlls/winex11.drv/x11drv.h
View file @
4ccbcb02
...
...
@@ -307,7 +307,7 @@ extern void IME_UpdateAssociation(HWND focus);
extern
BOOL
IME_SetCompositionString
(
DWORD
dwIndex
,
LPCVOID
lpComp
,
DWORD
dwCompLen
,
LPCVOID
lpRead
,
DWORD
dwReadLen
);
extern
BOOL
IME_NotifyIME
(
DWORD
dwAction
,
DWORD
dwIndex
,
DWORD
dwValue
);
extern
void
IME_SetResultString
(
LPWSTR
lpResult
,
DWORD
dwResultlen
);
extern
void
X11DRV_XDND_EnterEvent
(
HWND
hWnd
,
XClientMessageEvent
*
event
);
extern
void
X11DRV_XDND_PositionEvent
(
HWND
hWnd
,
XClientMessageEvent
*
event
);
...
...
dlls/winex11.drv/xim.c
View file @
4ccbcb02
...
...
@@ -116,9 +116,7 @@ void X11DRV_XIMLookupChars( const char *str, DWORD count )
if
((
focus
=
GetFocus
()))
IME_UpdateAssociation
(
focus
);
IME_SetCompositionString
(
SCS_SETSTR
,
wcOutput
,
sizeof
(
WCHAR
)
*
dwOutput
,
NULL
,
0
);
IME_NotifyIME
(
NI_COMPOSITIONSTR
,
CPS_COMPLETE
,
0
);
IME_SetResultString
(
wcOutput
,
dwOutput
);
HeapFree
(
GetProcessHeap
(),
0
,
wcOutput
);
}
...
...
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