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
f7e76184
Commit
f7e76184
authored
May 30, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Make sure HIMC is opened before sending IME updates.
parent
97c0a52a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
xim.c
dlls/winex11.drv/xim.c
+2
-0
No files found.
dlls/winex11.drv/xim.c
View file @
f7e76184
...
@@ -175,6 +175,7 @@ static int xic_preedit_start( XIC xic, XPointer user, XPointer arg )
...
@@ -175,6 +175,7 @@ static int xic_preedit_start( XIC xic, XPointer user, XPointer arg )
if
((
ime_comp_buf
=
realloc
(
ime_comp_buf
,
sizeof
(
WCHAR
)
)))
*
ime_comp_buf
=
0
;
if
((
ime_comp_buf
=
realloc
(
ime_comp_buf
,
sizeof
(
WCHAR
)
)))
*
ime_comp_buf
=
0
;
else
ERR
(
"Failed to allocate preedit buffer
\n
"
);
else
ERR
(
"Failed to allocate preedit buffer
\n
"
);
NtUserPostMessage
(
hwnd
,
WM_IME_NOTIFY
,
IMN_WINE_SET_OPEN_STATUS
,
TRUE
);
post_ime_update
(
hwnd
,
0
,
ime_comp_buf
,
NULL
);
post_ime_update
(
hwnd
,
0
,
ime_comp_buf
,
NULL
);
return
-
1
;
return
-
1
;
...
@@ -190,6 +191,7 @@ static int xic_preedit_done( XIC xic, XPointer user, XPointer arg )
...
@@ -190,6 +191,7 @@ static int xic_preedit_done( XIC xic, XPointer user, XPointer arg )
ime_comp_buf
=
NULL
;
ime_comp_buf
=
NULL
;
post_ime_update
(
hwnd
,
0
,
NULL
,
NULL
);
post_ime_update
(
hwnd
,
0
,
NULL
,
NULL
);
NtUserPostMessage
(
hwnd
,
WM_IME_NOTIFY
,
IMN_WINE_SET_OPEN_STATUS
,
FALSE
);
return
0
;
return
0
;
}
}
...
...
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