Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
42812044
Commit
42812044
authored
Jul 25, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jul 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Hide the composition window if the string is empty.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55258
parent
1b26b17e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
ime.c
dlls/imm32/ime.c
+6
-7
No files found.
dlls/imm32/ime.c
View file @
42812044
...
...
@@ -98,6 +98,8 @@ static void input_context_set_comp_str( INPUTCONTEXT *ctx, const WCHAR *str, UIN
UINT
size
;
BYTE
*
dst
;
TRACE
(
"ctx %p, str %s
\n
"
,
ctx
,
debugstr_wn
(
str
,
len
)
);
size
=
sizeof
(
*
compstr
);
size
+=
len
*
sizeof
(
WCHAR
);
/* GCS_COMPSTR */
size
+=
len
;
/* GCS_COMPSTRATTR */
...
...
@@ -310,20 +312,17 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
static
void
ime_ui_update_window
(
INPUTCONTEXT
*
ctx
,
HWND
hwnd
)
{
COMPOSITIONSTRING
*
string
;
if
(
ctx
->
hCompStr
)
string
=
ImmLockIMCC
(
ctx
->
hCompStr
);
else
string
=
NULL
;
WCHAR
*
str
;
UINT
len
;
if
(
!
string
||
string
->
dwCompStrLen
==
0
)
if
(
!
(
str
=
input_context_get_comp_str
(
ctx
,
FALSE
,
&
len
))
||
!*
str
)
ShowWindow
(
hwnd
,
SW_HIDE
);
else
{
ShowWindow
(
hwnd
,
SW_SHOWNOACTIVATE
);
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_ERASENOW
|
RDW_INVALIDATE
);
}
if
(
string
)
ImmUnlockIMCC
(
ctx
->
hCompStr
);
free
(
str
);
ctx
->
hWnd
=
GetFocus
();
}
...
...
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