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
9462190b
Commit
9462190b
authored
Apr 18, 2008
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Generate WM_IME_ENDCOMPOSITION when preedit ends.
parent
a629a419
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
ime.c
dlls/winex11.drv/ime.c
+15
-3
No files found.
dlls/winex11.drv/ime.c
View file @
9462190b
...
...
@@ -687,16 +687,22 @@ BOOL WINAPI NotifyIME(HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue)
TRACE
(
"IMC_SETOPENSTATUS
\n
"
);
myPrivate
=
(
LPIMEPRIVATE
)
ImmLockIMCC
(
lpIMC
->
hPrivate
);
if
(
lpIMC
->
fOpen
!=
myPrivate
->
bInternalState
)
if
(
lpIMC
->
fOpen
!=
myPrivate
->
bInternalState
&&
myPrivate
->
bInComposition
)
{
if
(
lpIMC
->
fOpen
==
FALSE
)
{
X11DRV_ForceXIMReset
(
lpIMC
->
hWnd
);
GenerateIMEMessage
(
hIMC
,
WM_IME_ENDCOMPOSITION
,
0
,
0
);
myPrivate
->
bInComposition
=
FALSE
;
}
else
{
GenerateIMEMessage
(
hIMC
,
WM_IME_STARTCOMPOSITION
,
0
,
0
);
GenerateIMEMessage
(
hIMC
,
WM_IME_COMPOSITION
,
0
,
0
);
}
}
myPrivate
->
bInternalState
=
lpIMC
->
fOpen
;
bRet
=
TRUE
;
}
break
;
...
...
@@ -963,12 +969,18 @@ void IME_SetOpenStatus(BOOL fOpen)
ImmDestroyIMCC
(
lpIMC
->
hCompStr
);
lpIMC
->
hCompStr
=
ImeCreateBlankCompStr
();
}
myPrivate
->
bInternalState
=
fOpen
;
ImmUnlockIMCC
(
lpIMC
->
hPrivate
);
UnlockRealIMC
(
FROM_X11
);
ImmSetOpenStatus
(
RealIMC
(
FROM_X11
),
fOpen
);
if
(
myPrivate
->
bInComposition
&&
fOpen
==
FALSE
)
{
GenerateIMEMessage
(
FROM_X11
,
WM_IME_ENDCOMPOSITION
,
0
,
0
);
myPrivate
->
bInComposition
=
FALSE
;
}
if
(
!
myPrivate
->
bInternalState
&&
fOpen
==
TRUE
)
ImmSetOpenStatus
(
RealIMC
(
FROM_X11
),
fOpen
);
}
void
IME_XIMPresent
(
BOOL
present
)
...
...
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